New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install edlib for Python 3.11 on Windows #217
Comments
I'm getting the same error on macOS ventura with python The issue:
Using apple clang version I also tried:
It first failed because
I got it to work this way (in
and, after uncommenting the readme-related lines in
|
Describe the bug
Edlib can be pip installed from PyPi for Python 3.10 on Windows, but the installation fails for Python 3.11
To Reproduce
Make sure that MS Visual Studio is sitalled
pip install edlib
Expected behavior
Package is built and installed.
Environment (please complete the following information):
Additional context
Failure message is:
(py3.11) PS D:\py3.11\Scripts> pip install edlib
Looking in indexes: https://pypi.org/simple
Collecting edlib
Using cached edlib-1.3.9.tar.gz (91 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: edlib
Building wheel for edlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for edlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_ext
building 'edlib' extension
creating build
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\edlib
creating build\temp.win-amd64-cpython-311\Release\edlib\src
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iedlib/include -ID:\py3.11\include -ID:\Python-3.11\include -ID:\Python-3.11\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpedlib.bycython.cpp /Fobuild\temp.win-amd64-cpython-311\Release\edlib.bycython.obj -O3 -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-O3'
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
edlib.bycython.cpp
edlib.bycython.cpp(198): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\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 edlib
Failed to build edlib
ERROR: Could not build wheels for edlib, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered: