Building wheel for pycrypto (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
Expected behavior
No response
pip version
pip 23.2.1
Python version
Python 3.11.4
OS
Windows 10 pro 22H2
How to Reproduce
pip install -r requirements_dev.txt
Output
Collecting attrs==23.1.0 (from -r requirements_dev.txt (line 1))
Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting autobahn==23.6.2 (from -r requirements_dev.txt (line 2))
Using cached autobahn-23.6.2-py2.py3-none-any.whl
Collecting Automat==22.10.0 (from -r requirements_dev.txt (line 3))
Using cached Automat-22.10.0-py2.py3-none-any.whl (26 kB)
Collecting certifi==2023.5.7 (from -r requirements_dev.txt (line 4))
Using cached certifi-2023.5.7-py3-none-any.whl (156 kB)
Requirement already satisfied: cffi==1.15.1 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 5)) (1.15.1)
Collecting charset-normalizer==3.1.0 (from -r requirements_dev.txt (line 6))
Using cached charset_normalizer-3.1.0-cp311-cp311-win_amd64.whl (96 kB)
Collecting constantly==15.1.0 (from -r requirements_dev.txt (line 7))
Using cached constantly-15.1.0-py2.py3-none-any.whl (7.9 kB)
Collecting cryptography==41.0.1 (from -r requirements_dev.txt (line 8))
Obtaining dependency information for cryptography==41.0.1 from https://files.pythonhosted.org/packages/6a/35/7d7ac1ecd59c88f760584d3b9606ebfd48c5442377d67a8d3081226be424/cryptography-41.0.1-cp37-abi3-win_amd64.whl.metadata
Using cached cryptography-41.0.1-cp37-abi3-win_amd64.whl.metadata (5.3 kB)
Collecting hyperlink==21.0.0 (from -r requirements_dev.txt (line 9))
Using cached hyperlink-21.0.0-py2.py3-none-any.whl (74 kB)
Requirement already satisfied: idna==3.4 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 10)) (3.4)
Collecting incremental==22.10.0 (from -r requirements_dev.txt (line 11))
Using cached incremental-22.10.0-py2.py3-none-any.whl (16 kB)
Collecting isodate==0.6.1 (from -r requirements_dev.txt (line 12))
Using cached isodate-0.6.1-py2.py3-none-any.whl (41 kB)
Collecting logzero==1.7.0 (from -r requirements_dev.txt (line 13))
Using cached logzero-1.7.0-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: pycparser==2.21 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 14)) (2.21)
Collecting pycrypto==2.6.1 (from -r requirements_dev.txt (line 15))
Using cached pycrypto-2.6.1.tar.gz (446 kB)
Preparing metadata (setup.py) ... done
Collecting pyotp==2.8.0 (from -r requirements_dev.txt (line 16))
Using cached pyotp-2.8.0-py3-none-any.whl (12 kB)
Collecting pyparsing==3.1.0 (from -r requirements_dev.txt (line 17))
Obtaining dependency information for pyparsing==3.1.0 from https://files.pythonhosted.org/packages/a4/24/6ae4c9c45cf99d96b06b5d99e25526c060303171fb0aea9da2bfd7dbde93/pyparsing-3.1.0-py3-none-any.whl.metadata
Using cached pyparsing-3.1.0-py3-none-any.whl.metadata (4.9 kB)
Requirement already satisfied: python-dateutil==2.8.2 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 18)) (2.8.2)
Requirement already satisfied: pytz==2023.3 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 19)) (2023.3)
Collecting rdflib==6.3.2 (from -r requirements_dev.txt (line 20))
Using cached rdflib-6.3.2-py3-none-any.whl (528 kB)
Collecting rdflib-jsonld==0.6.2 (from -r requirements_dev.txt (line 21))
Using cached rdflib_jsonld-0.6.2-py2.py3-none-any.whl (4.0 kB)
Requirement already satisfied: requests==2.31.0 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 22)) (2.31.0)
Collecting simplejson==3.19.1 (from -r requirements_dev.txt (line 23))
Using cached simplejson-3.19.1-cp311-cp311-win_amd64.whl (75 kB)
Requirement already satisfied: six==1.16.0 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 24)) (1.16.0)
Collecting smartapi-python==1.3.0 (from -r requirements_dev.txt (line 25))
Obtaining dependency information for smartapi-python==1.3.0 from https://files.pythonhosted.org/packages/5a/02/666530ab083c15dffc2dc95233f0648ece90d3b97df3b631ef424f38ad73/smartapi_python-1.3.0-py3-none-any.whl.metadata
Using cached smartapi_python-1.3.0-py3-none-any.whl.metadata (5.8 kB)
Collecting Twisted==22.10.0 (from -r requirements_dev.txt (line 26))
Using cached Twisted-22.10.0-py3-none-any.whl (3.1 MB)
Collecting txaio==23.1.1 (from -r requirements_dev.txt (line 27))
Using cached txaio-23.1.1-py2.py3-none-any.whl (30 kB)
Collecting typing_extensions==4.6.3 (from -r requirements_dev.txt (line 28))
Obtaining dependency information for typing_extensions==4.6.3 from https://files.pythonhosted.org/packages/5f/86/d9b1518d8e75b346a33eb59fa31bdbbee11459a7e2cc5be502fa779e96c5/typing_extensions-4.6.3-py3-none-any.whl.metadata
Using cached typing_extensions-4.6.3-py3-none-any.whl.metadata (2.8 kB)
Collecting urllib3==2.0.3 (from -r requirements_dev.txt (line 29))
Obtaining dependency information for urllib3==2.0.3 from https://files.pythonhosted.org/packages/8a/03/ad9306a50d05c166e3456fe810f33cee2b8b2a7a6818ec5d4908c4ec6b36/urllib3-2.0.3-py3-none-any.whl.metadata
Using cached urllib3-2.0.3-py3-none-any.whl.metadata (6.6 kB)
Collecting websocket-client==1.6.0 (from -r requirements_dev.txt (line 30))
Obtaining dependency information for websocket-client==1.6.0 from https://files.pythonhosted.org/packages/cd/b9/cf588fc9e8cdfe2cdb22360c608a9337918ee63ded9b232fe9c1c46e1d8a/websocket_client-1.6.0-py3-none-any.whl.metadata
Using cached websocket_client-1.6.0-py3-none-any.whl.metadata (7.6 kB)
Collecting zope.interface==6.0 (from -r requirements_dev.txt (line 31))
Using cached zope.interface-6.0-cp311-cp311-win_amd64.whl (204 kB)
Requirement already satisfied: setuptools in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from autobahn==23.6.2->-r requirements_dev.txt (line 2)) (68.0.0)
Collecting colorama (from logzero==1.7.0->-r requirements_dev.txt (line 13))
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting twisted-iocpsupport<2,>=1.0.2 (from Twisted==22.10.0->-r requirements_dev.txt (line 26))
Obtaining dependency information for twisted-iocpsupport<2,>=1.0.2 from https://files.pythonhosted.org/packages/5b/e4/54819582c7852295188427c49526da79c9b884253ac7ce9d74b51b6be181/twisted_iocpsupport-1.0.4-cp311-cp311-win_amd64.whl.metadata
Using cached twisted_iocpsupport-1.0.4-cp311-cp311-win_amd64.whl.metadata (2.2 kB)
Using cached cryptography-41.0.1-cp37-abi3-win_amd64.whl (2.6 MB)
Using cached pyparsing-3.1.0-py3-none-any.whl (102 kB)
Using cached smartapi_python-1.3.0-py3-none-any.whl (18 kB)
Using cached typing_extensions-4.6.3-py3-none-any.whl (31 kB)
Using cached urllib3-2.0.3-py3-none-any.whl (123 kB)
Using cached websocket_client-1.6.0-py3-none-any.whl (56 kB)
Using cached twisted_iocpsupport-1.0.4-cp311-cp311-win_amd64.whl (47 kB)
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (setup.py) ... error
error: subprocess-exited-with-error
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycrypto
Running setup.py clean for pycrypto
Failed to build pycrypto
ERROR: Could not build wheels for pycrypto, which is required to install pyproject.toml-based projects
Description
Building wheel for pycrypto (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [28 lines of output] warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
Expected behavior
No response
pip version
pip 23.2.1
Python version
Python 3.11.4
OS
Windows 10 pro 22H2
How to Reproduce
pip install -r requirements_dev.txt
Output
Collecting attrs==23.1.0 (from -r requirements_dev.txt (line 1)) Using cached attrs-23.1.0-py3-none-any.whl (61 kB) Collecting autobahn==23.6.2 (from -r requirements_dev.txt (line 2)) Using cached autobahn-23.6.2-py2.py3-none-any.whl Collecting Automat==22.10.0 (from -r requirements_dev.txt (line 3)) Using cached Automat-22.10.0-py2.py3-none-any.whl (26 kB) Collecting certifi==2023.5.7 (from -r requirements_dev.txt (line 4)) Using cached certifi-2023.5.7-py3-none-any.whl (156 kB) Requirement already satisfied: cffi==1.15.1 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 5)) (1.15.1) Collecting charset-normalizer==3.1.0 (from -r requirements_dev.txt (line 6)) Using cached charset_normalizer-3.1.0-cp311-cp311-win_amd64.whl (96 kB) Collecting constantly==15.1.0 (from -r requirements_dev.txt (line 7)) Using cached constantly-15.1.0-py2.py3-none-any.whl (7.9 kB) Collecting cryptography==41.0.1 (from -r requirements_dev.txt (line 8)) Obtaining dependency information for cryptography==41.0.1 from https://files.pythonhosted.org/packages/6a/35/7d7ac1ecd59c88f760584d3b9606ebfd48c5442377d67a8d3081226be424/cryptography-41.0.1-cp37-abi3-win_amd64.whl.metadata Using cached cryptography-41.0.1-cp37-abi3-win_amd64.whl.metadata (5.3 kB) Collecting hyperlink==21.0.0 (from -r requirements_dev.txt (line 9)) Using cached hyperlink-21.0.0-py2.py3-none-any.whl (74 kB) Requirement already satisfied: idna==3.4 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 10)) (3.4) Collecting incremental==22.10.0 (from -r requirements_dev.txt (line 11)) Using cached incremental-22.10.0-py2.py3-none-any.whl (16 kB) Collecting isodate==0.6.1 (from -r requirements_dev.txt (line 12)) Using cached isodate-0.6.1-py2.py3-none-any.whl (41 kB) Collecting logzero==1.7.0 (from -r requirements_dev.txt (line 13)) Using cached logzero-1.7.0-py2.py3-none-any.whl (16 kB) Requirement already satisfied: pycparser==2.21 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 14)) (2.21) Collecting pycrypto==2.6.1 (from -r requirements_dev.txt (line 15)) Using cached pycrypto-2.6.1.tar.gz (446 kB) Preparing metadata (setup.py) ... done Collecting pyotp==2.8.0 (from -r requirements_dev.txt (line 16)) Using cached pyotp-2.8.0-py3-none-any.whl (12 kB) Collecting pyparsing==3.1.0 (from -r requirements_dev.txt (line 17)) Obtaining dependency information for pyparsing==3.1.0 from https://files.pythonhosted.org/packages/a4/24/6ae4c9c45cf99d96b06b5d99e25526c060303171fb0aea9da2bfd7dbde93/pyparsing-3.1.0-py3-none-any.whl.metadata Using cached pyparsing-3.1.0-py3-none-any.whl.metadata (4.9 kB) Requirement already satisfied: python-dateutil==2.8.2 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 18)) (2.8.2) Requirement already satisfied: pytz==2023.3 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 19)) (2023.3) Collecting rdflib==6.3.2 (from -r requirements_dev.txt (line 20)) Using cached rdflib-6.3.2-py3-none-any.whl (528 kB) Collecting rdflib-jsonld==0.6.2 (from -r requirements_dev.txt (line 21)) Using cached rdflib_jsonld-0.6.2-py2.py3-none-any.whl (4.0 kB) Requirement already satisfied: requests==2.31.0 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 22)) (2.31.0) Collecting simplejson==3.19.1 (from -r requirements_dev.txt (line 23)) Using cached simplejson-3.19.1-cp311-cp311-win_amd64.whl (75 kB) Requirement already satisfied: six==1.16.0 in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from -r requirements_dev.txt (line 24)) (1.16.0) Collecting smartapi-python==1.3.0 (from -r requirements_dev.txt (line 25)) Obtaining dependency information for smartapi-python==1.3.0 from https://files.pythonhosted.org/packages/5a/02/666530ab083c15dffc2dc95233f0648ece90d3b97df3b631ef424f38ad73/smartapi_python-1.3.0-py3-none-any.whl.metadata Using cached smartapi_python-1.3.0-py3-none-any.whl.metadata (5.8 kB) Collecting Twisted==22.10.0 (from -r requirements_dev.txt (line 26)) Using cached Twisted-22.10.0-py3-none-any.whl (3.1 MB) Collecting txaio==23.1.1 (from -r requirements_dev.txt (line 27)) Using cached txaio-23.1.1-py2.py3-none-any.whl (30 kB) Collecting typing_extensions==4.6.3 (from -r requirements_dev.txt (line 28)) Obtaining dependency information for typing_extensions==4.6.3 from https://files.pythonhosted.org/packages/5f/86/d9b1518d8e75b346a33eb59fa31bdbbee11459a7e2cc5be502fa779e96c5/typing_extensions-4.6.3-py3-none-any.whl.metadata Using cached typing_extensions-4.6.3-py3-none-any.whl.metadata (2.8 kB) Collecting urllib3==2.0.3 (from -r requirements_dev.txt (line 29)) Obtaining dependency information for urllib3==2.0.3 from https://files.pythonhosted.org/packages/8a/03/ad9306a50d05c166e3456fe810f33cee2b8b2a7a6818ec5d4908c4ec6b36/urllib3-2.0.3-py3-none-any.whl.metadata Using cached urllib3-2.0.3-py3-none-any.whl.metadata (6.6 kB) Collecting websocket-client==1.6.0 (from -r requirements_dev.txt (line 30)) Obtaining dependency information for websocket-client==1.6.0 from https://files.pythonhosted.org/packages/cd/b9/cf588fc9e8cdfe2cdb22360c608a9337918ee63ded9b232fe9c1c46e1d8a/websocket_client-1.6.0-py3-none-any.whl.metadata Using cached websocket_client-1.6.0-py3-none-any.whl.metadata (7.6 kB) Collecting zope.interface==6.0 (from -r requirements_dev.txt (line 31)) Using cached zope.interface-6.0-cp311-cp311-win_amd64.whl (204 kB) Requirement already satisfied: setuptools in c:\users\admin\appdata\local\programs\python\python311\lib\site-packages (from autobahn==23.6.2->-r requirements_dev.txt (line 2)) (68.0.0) Collecting colorama (from logzero==1.7.0->-r requirements_dev.txt (line 13)) Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB) Collecting twisted-iocpsupport<2,>=1.0.2 (from Twisted==22.10.0->-r requirements_dev.txt (line 26)) Obtaining dependency information for twisted-iocpsupport<2,>=1.0.2 from https://files.pythonhosted.org/packages/5b/e4/54819582c7852295188427c49526da79c9b884253ac7ce9d74b51b6be181/twisted_iocpsupport-1.0.4-cp311-cp311-win_amd64.whl.metadata Using cached twisted_iocpsupport-1.0.4-cp311-cp311-win_amd64.whl.metadata (2.2 kB) Using cached cryptography-41.0.1-cp37-abi3-win_amd64.whl (2.6 MB) Using cached pyparsing-3.1.0-py3-none-any.whl (102 kB) Using cached smartapi_python-1.3.0-py3-none-any.whl (18 kB) Using cached typing_extensions-4.6.3-py3-none-any.whl (31 kB) Using cached urllib3-2.0.3-py3-none-any.whl (123 kB) Using cached websocket_client-1.6.0-py3-none-any.whl (56 kB) Using cached twisted_iocpsupport-1.0.4-cp311-cp311-win_amd64.whl (47 kB) Building wheels for collected packages: pycrypto Building wheel for pycrypto (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [28 lines of output] warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath. winrand.c C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(31): error C2061: syntax error: identifier 'intmax_t' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(32): error C2061: syntax error: identifier 'rem' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(32): error C2059: syntax error: ';' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(33): error C2059: syntax error: '}' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(35): error C2061: syntax error: identifier 'imaxdiv_t' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(35): error C2059: syntax error: ';' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(45): error C2143: syntax error: missing '{' before 'cdecl' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(46): error C2146: syntax error: missing ')' before identifier '_Number' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(46): error C2061: syntax error: identifier '_Number' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(46): error C2059: syntax error: ';' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(47): error C2059: syntax error: ')' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(50): error C2143: syntax error: missing '{' before 'cdecl' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(51): error C2146: syntax error: missing ')' before identifier '_Numerator' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(51): error C2061: syntax error: identifier '_Numerator' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(51): error C2059: syntax error: ';' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(51): error C2059: syntax error: ',' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(53): error C2059: syntax error: ')' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(55): error C2143: syntax error: missing '{' before 'cdecl' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(61): error C2143: syntax error: missing '{' before 'cdecl' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(68): error C2143: syntax error: missing '{' before 'cdecl' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(74): error C2143: syntax error: missing '{' before 'cdecl' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(81): error C2143: syntax error: missing '{' before 'cdecl' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(87): error C2143: syntax error: missing '{' before 'cdecl' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(94): error C2143: syntax error: missing '{' before 'cdecl' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\inttypes.h(100): error C2143: syntax error: missing '{' before 'cdecl' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\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 pycrypto Running setup.py clean for pycrypto Failed to build pycrypto ERROR: Could not build wheels for pycrypto, which is required to install pyproject.toml-based projects
Code of Conduct