-
Notifications
You must be signed in to change notification settings - Fork 53
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
pyhash 0.9.3 does not install on Python 3.11 #65
Comments
+1 |
Well, this is annoying. I'm also experiencing the issue. |
I'm trying to install in Windows but still 3.11. I'm getting a different installation error: × python setup.py egg_info did not run successfully. My pip is up to date. |
Resolves C++ compilation error in Python 3.11
On my windows machine, after install Microsfor Build tool, I got the following error: C:\DataRoot\Work\PyCache $ python --version Python 3.11.3 C:\DataRoot\Work\PyCache $ set PYTHON_HOME="C:\Program Files\Python311" C:\DataRoot\Work\PyCache $ pipenv install pyhash Installing pyhash... Resolving pyhash... Installing... [ =] Installing pyhash...[31m[1mError: [0m An error occurred while installing [32mpyhash[0m! Error text: Looking in indexes: https://pypi.org/simple, https://testpypi.org/simple Collecting pyhash (from -r c:\users\elau1\appdata\local\temp\pipenv-vb6oqr5e-requirements\pipenv-vcurx2o5-requirement.txt (line 1)) Using cached pyhash-0.9.3.tar.gz (602 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Building wheels for collected packages: pyhash Building wheel for pyhash (setup.py): started Building wheel for pyhash (setup.py): finished with status 'error' Running setup.py clean for pyhash Failed to build pyhash [36mWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyhash/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyhash/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyhash/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyhash/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyhash/ error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [85 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.11 creating build\lib.win-amd64-3.11\pyhash copying pyhash\__init__.py -> build\lib.win-amd64-3.11\pyhash C:\Users\elau1\.virtualenvs\PyCache-NOLGBfFo\Lib\site-packages\setuptools\lib2to3_ex.py:36: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process. warnings.warn( Fixing build\lib.win-amd64-3.11\pyhash\__init__.py Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma Fixing build\lib.win-amd64-3.11\pyhash\__init__.py Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma warning: build_py: byte-compiling is disabled, skipping. running build_clib building 'fnv' library creating build\temp.win-amd64-3.11 creating build\temp.win-amd64-3.11\src creating build\temp.win-amd64-3.11\src\fnv C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\include -IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\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 -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um /Tcsrc/fnv/hash_32.c /Fobuild\temp.win-amd64-3.11\src/fnv/hash_32.obj hash_32.c C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(91): error C2061: syntax error: identifier 'Fnv32_t' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(91): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(133): error C2061: syntax error: identifier 'Fnv64_t' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(133): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(201): error C2061: syntax error: identifier 'Fnv32_t' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(202): error C2059: syntax error: '}' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(205): error C2061: syntax error: identifier 'Fnv32_t' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(206): error C2059: syntax error: '}' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(209): error C2061: syntax error: identifier 'Fnv32_t' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(210): error C2059: syntax error: '}' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(213): error C2061: syntax error: identifier 'Fnv64_t' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(214): error C2059: syntax error: '}' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(217): error C2061: syntax error: identifier 'Fnv64_t' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(218): error C2059: syntax error: '}' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(221): error C2061: syntax error: identifier 'Fnv64_t' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(222): error C2059: syntax error: '}' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(232): error C2061: syntax error: identifier 'fnv_32_buf' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(232): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(232): error C2059: syntax error: '' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(233): error C2061: syntax error: identifier 'fnv_32_str' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(233): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(233): error C2059: syntax error: '' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(236): error C2061: syntax error: identifier 'fnv_32a_buf' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(236): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(236): error C2059: syntax error: '' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(237): error C2061: syntax error: identifier 'fnv_32a_str' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(237): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(237): error C2059: syntax error: '' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(240): error C2061: syntax error: identifier 'fnv_64_buf' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(240): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(240): error C2059: syntax error: '' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(241): error C2061: syntax error: identifier 'fnv_64_str' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(241): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(241): error C2059: syntax error: '' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(244): error C2061: syntax error: identifier 'fnv_64a_buf' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(244): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(244): error C2059: syntax error: '' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(245): error C2061: syntax error: identifier 'fnv_64a_str' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(245): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(245): error C2059: syntax error: '' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(260): error C2146: syntax error: missing ')' before identifier 'hval' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(260): error C2061: syntax error: identifier 'hval' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(260): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(260): error C2059: syntax error: ',' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(260): error C2059: syntax error: ')' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(261): error C2146: syntax error: missing ')' before identifier 'hval' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(261): error C2061: syntax error: identifier 'hval' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(261): error C2059: syntax error: ';' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(261): error C2059: syntax error: ',' C:\Users\elau1\AppData\Local\Temp\pip-install-7m2halsd\pyhash_eb0259e2dc754b1dbd7ce130066e451c\src\fnv\fnv.h(261): error C2059: syntax error: ')' src/fnv/hash_32.c(91): error C2061: syntax error: identifier 'fnv_32_buf' src/fnv/hash_32.c(91): error C2059: syntax error: ';' src/fnv/hash_32.c(91): error C2059: syntax error: '' src/fnv/hash_32.c(134): error C2061: syntax error: identifier 'fnv_32_str' src/fnv/hash_32.c(134): error C2059: syntax error: ';' src/fnv/hash_32.c(134): error C2059: syntax error: '' error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pyhash ERROR: Could not build wheels for pyhash, which is required to install pyproject.toml-based projects [0m Installation Failed |
Also added Python 3.11 to the CI test matrix. related issues/discussions: - pybind/pybind11#4333 - flier#69 - flier#65
On a fresh virtualenv, with python 3.11, I cannot install latest
pyhash
versionhas this one already seen by others ?
in case python 3.11 is not yet officially supported, is there an estimated date for supporting it ?
thanks in advance
PS: i pasted below the full
pip install
traceback.The text was updated successfully, but these errors were encountered: