[python 3.11] ./mach wpt fails with: src/aioquic/_crypto.c(4): fatal error C1083: Cannot open include file: 'openssl/err.h': No such file or directory
Categories
(Testing :: web-platform-tests, defect)
Tracking
(firefox-esr115 fixed, firefox117 fixed)
People
(Reporter: jgilbert, Assigned: hsohaney)
References
(Blocks 1 open bug, )
Details
Attachments
(2 files)
Log snippet:
building 'aioquic._crypto' extension
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\dev\mozilla\gecko7\obj-x86_64-pc-windows-msvc\_virtualenvs\wpt\include -IC:\Program Files\Python311\include -IC:\Program Files\Python311\Include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\ATLMFC\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt /Tcsrc/aioquic/_crypto.c /Fobuild\temp.win-amd64-3.11\Release\src/aioquic/_crypto.obj
_crypto.c
src/aioquic/_crypto.c(4): fatal error C1083: Cannot open include file: 'openssl/err.h': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> aioquic
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
git: 'cinnabar' is not a git command. See 'git --help'.
Error running mach:
['wpt', '--default-exclude']
It looks like bug 1762307 is trying to update aioquic, but it doesn't look like the patchnotes have anything relevant.
There is a workaround in a closed issue that involves amending env vars:
https://github.com/aiortc/aioquic/issues/56
| Reporter | ||
Comment 1•2 years ago
|
||
I filed a new issue in that repo:
https://github.com/aiortc/aioquic/issues/369
Comment 2•2 years ago
|
||
The severity field is not set for this bug.
:jgraham, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 3•2 years ago
|
||
Yeah, it seems like at the moment we can't (easily) use Python 3.11 with wpt since there's no aioquic wheel. I filed https://github.com/aiortc/aioquic/issues/372 for the alternate solution of making a release compiled against 3.11, but I strongly prefer the solution of using native Python code if possible.
| Reporter | ||
Comment 4•2 years ago
|
||
It's likely that aioquic will fix this upstream soon: https://github.com/aiortc/aioquic/pull/347
Updated•2 years ago
|
| Reporter | ||
Updated•2 years ago
|
Comment 5•2 years ago
|
||
This gets rid of the aioquic error for me:
export CFLAGS=-I$(brew --prefix openssl@3)/include
export LDFLAGS=-L$(brew --prefix openssl@3)/lib
But I'm still getting another error after that ModuleNotFoundError: No module named 'redo', which I'll investigate a bit.
| Assignee | ||
Comment 6•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 8•2 years ago
|
||
| bugherder | ||
Updated•1 year ago
|
Description
•