Python 3.11 wheels missing
penalvch opened this issue · 3 comments
penalvch commented
Hi all, attempted to install pycairo via pip and got below error. The error suggests not root caused to pip.
python -V
Python 3.11.0
pip -V
pip 22.3.1 from C:\Python311\Lib\site-packages\pip (python 3.11)
python -m pip install -U pip pycairo
Requirement already satisfied: pip in c:\python311\lib\site-packages (22.3.1)
Collecting pycairo
Using cached pycairo-1.21.0.tar.gz (340 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pycairo
Building wheel for pycairo (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pycairo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\cairo
copying cairo\__init__.py -> build\lib.win-amd64-cpython-311\cairo
copying cairo\__init__.pyi -> build\lib.win-amd64-cpython-311\cairo
copying cairo\py.typed -> build\lib.win-amd64-cpython-311\cairo
running build_ext
building 'cairo._cairo' extension
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\cairo
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=21 -DPYCAIRO_VERSION_MICRO=0 -IC:\Python311\include -IC:\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\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" /Tccairo/bufferproxy.c /Fobuild\temp.win-amd64-cpython-311\Release\cairo/bufferproxy.obj
bufferproxy.c
C:\Users\moniker\AppData\Local\Temp\pip-install-o68cyr22\pycairo_9bc6b12d007b48e2a4f71cdd07e5656b\cairo\pycairo.h(37): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.34.31933\\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: Failed building wheel for pycairo
Failed to build pycairo
ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
lazka commented
You can work that around temporarily by using Python 3.10. We will look into providing 3.11 wheels.
naveen521kk commented
Or you can download the CI artifact from https://github.com/pygobject/pycairo/suites/9257381459/artifacts/433262311 and install it.
Though it would be better to upload to PyPI and also probably use #243