You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please include any of the following that are applicable:
The code which produced the error - pip install 'web3[tester]'
The full output of the error -
$ pip install 'web3[tester]'
Requirement already satisfied: web3[tester] in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (5.13.0)
Requirement already satisfied: eth-typing<3.0.0,>=2.0.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (2.2.2)
Requirement already satisfied: hexbytes<1.0.0,>=0.1.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages
(from web3[tester]) (0.2.1)
Requirement already satisfied: ipfshttpclient==0.7.0a1 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (0.7.0a1)
Requirement already satisfied: protobuf<4,>=3.10.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (3.14.0)
Requirement already satisfied: eth-abi<3.0.0,>=2.0.0b6 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (2.1.1)
Requirement already satisfied: eth-account<0.6.0,>=0.5.3 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (0.5.4)
Requirement already satisfied: lru-dict<2.0.0,>=1.1.6 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages
(from web3[tester]) (1.1.6)
Requirement already satisfied: eth-hash[pycryptodome]<1.0.0,>=0.2.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (0.2.0)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (2.25.0)
Requirement already satisfied: websockets<9.0.0,>=8.1.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (8.1)
Requirement already satisfied: jsonschema<4.0.0,>=3.2.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (3.2.0)
Requirement already satisfied: pypiwin32>=223; platform_system == "Windows" in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (223)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: py-geth<3,>=2.4.0; extra == "tester" in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from web3[tester]) (2.4.0)
Collecting eth-tester[py-evm]==v0.5.0-beta.3; extra == "tester"
Using cached eth_tester-0.5.0b3-py3-none-any.whl (59 kB)
Requirement already satisfied: multiaddr>=0.0.7 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from
ipfshttpclient==0.7.0a1->web3[tester]) (0.0.9)
Requirement already satisfied: six>=1.9 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from protobuf<4,>=3.10.0->web3[tester]) (1.15.0)
Requirement already satisfied: parsimonious<0.9.0,>=0.8.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from eth-abi<3.0.0,>=2.0.0b6->web3[tester]) (0.8.1)
Requirement already satisfied: eth-keyfile<0.6.0,>=0.5.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (0.5.1)
Requirement already satisfied: eth-rlp<2,>=0.1.2 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (0.2.1)
Requirement already satisfied: eth-keys!=0.3.2,<0.4.0,>=0.2.1 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (0.3.3)
Requirement already satisfied: rlp<3,>=1.0.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (2.0.1)
Requirement already satisfied: bitarray<1.3.0,>=1.2.1 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages
(from eth-account<0.6.0,>=0.5.3->web3[tester]) (1.2.2)
Requirement already satisfied: pycryptodome<4,>=3.6.6; extra == "pycryptodome" in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from eth-hash[pycryptodome]<1.0.0,>=0.2.0->web3[tester]) (3.9.9)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from requests<3.0.0,>=2.16.0->web3[tester]) (2020.11.8)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from requests<3.0.0,>=2.16.0->web3[tester]) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from requests<3.0.0,>=2.16.0->web3[tester]) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from requests<3.0.0,>=2.16.0->web3[tester]) (1.26.2)
Requirement already satisfied: attrs>=17.4.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3[tester]) (20.3.0)
Requirement already satisfied: setuptools in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3[tester]) (49.2.1)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3[tester]) (0.17.3)
Requirement already satisfied: pywin32>=223 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from pypiwin32>=223; platform_system == "Windows"->web3[tester]) (300)
Requirement already satisfied: cytoolz<1.0.0,>=0.10.1; implementation_name == "cpython" in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from eth-utils<2.0.0,>=1.9.5->web3[tester]) (0.11.0)
Requirement already satisfied: semantic-version>=2.6.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from py-geth<3,>=2.4.0; extra == "tester"->web3[tester]) (2.8.5)
Collecting py-evm==0.3.0a20; extra == "py-evm"
Using cached py_evm-0.3.0a20-py3-none-any.whl (242 kB)
Requirement already satisfied: base58 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.7.0a1->web3[tester]) (2.0.1)
Requirement already satisfied: varint in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.7.0a1->web3[tester]) (1.0.2)
Requirement already satisfied: netaddr in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.7.0a1->web3[tester]) (0.8.0)
Requirement already satisfied: toolz>=0.8.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from cytoolz<1.0.0,>=0.10.1; implementation_name == "cpython"->eth-utils<2.0.0,>=1.9.5->web3[tester]) (0.11.1)
Requirement already satisfied: mypy-extensions<1.0.0,>=0.4.1 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from py-evm==0.3.0a20; extra == "py-evm"->eth-tester[py-evm]==v0.5.0-beta.3; extra == "tester"->web3[tester]) (0.4.3)
Collecting pyethash<1.0.0,>=0.1.27
Using cached pyethash-0.1.27.tar.gz (38 kB)
Requirement already satisfied: trie==2.0.0-alpha.5 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from py-evm==0.3.0a20; extra == "py-evm"->eth-tester[py-evm]==v0.5.0-beta.3; extra == "tester"->web3[tester]) (2.0.0a5)
Requirement already satisfied: py-ecc<5.0.0,>=1.4.7 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from py-evm==0.3.0a20; extra == "py-evm"->eth-tester[py-evm]==v0.5.0-beta.3; extra == "tester"->web3[tester]) (4.1.0)
Collecting eth-bloom<2.0.0,>=1.0.3
Using cached eth_bloom-1.0.3-py3-none-any.whl (5.4 kB)
Requirement already satisfied: cached-property<2,>=1.5.1 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from py-evm==0.3.0a20; extra == "py-evm"->eth-tester[py-evm]==v0.5.0-beta.3; extra == "tester"->web3[tester]) (1.5.2)
Requirement already satisfied: blake2b-py<0.2,>=0.1.2 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages
(from py-evm==0.3.0a20; extra == "py-evm"->eth-tester[py-evm]==v0.5.0-beta.3; extra == "tester"->web3[tester]) (0.1.3)
Requirement already satisfied: sortedcontainers<3,>=2.1.0 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from trie==2.0.0-alpha.5->py-evm==0.3.0a20; extra == "py-evm"->eth-tester[py-evm]==v0.5.0-beta.3; extra == "tester"->web3[tester]) (2.3.0)
Requirement already satisfied: typing-extensions<4,>=3.7.4 in c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\lib\site-packages (from trie==2.0.0-alpha.5->py-evm==0.3.0a20; extra == "py-evm"->eth-tester[py-evm]==v0.5.0-beta.3; extra == "tester"->web3[tester]) (3.7.4.3)
Using legacy 'setup.py install' for pyethash, since package 'wheel' is not installed.
Installing collected packages: pyethash, eth-bloom, py-evm, eth-tester
Running setup.py install for pyethash ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-iver41qv\\pyethash\\setup.py'"'"'; __file__='"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-iver41qv\\pyethash\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ASUS\AppData\Local\Temp\pip-record-3sfswv97\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\include\site\python3.9\pyethash'
cwd: C:\Users\ASUS\AppData\Local\Temp\pip-install-iver41qv\pyethash\
Complete output (25 lines):
running install
running build
running build_ext
building 'pyethash' extension
creating build
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\src
creating build\temp.win-amd64-3.9\Release\src\libethash
creating build\temp.win-amd64-3.9\Release\src\python
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL
/DNDEBUG /MD -Ic:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\include -IC:\Users\ASUS\AppData\Local\Programs\Python\Python39\include -IC:\Users\ASUS\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcsrc/libethash/internal.c /Fobuild\temp.win-amd64-3.9\Release\src/libethash/internal.obj -Isrc/ -std=gnu99 -Wall
cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
internal.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h(1833): warning C4710: 'int sprintf_s(char *const ,const size_t,const char *const ,...)': function not inlined
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h(1833): note: see declaration of 'sprintf_s'
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL
/DNDEBUG /MD -Ic:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\include -IC:\Users\ASUS\AppData\Local\Programs\Python\Python39\include -IC:\Users\ASUS\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcsrc/libethash/io.c /Fobuild\temp.win-amd64-3.9\Release\src/libethash/io.obj -Isrc/ -std=gnu99 -Wall
cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
io.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h(1833): warning C4710: 'int sprintf_s(char *const ,const size_t,const char *const ,...)': function not inlined
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdio.h(1833): note: see declaration of 'sprintf_s'
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL
/DNDEBUG /MD -Ic:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\include -IC:\Users\ASUS\AppData\Local\Programs\Python\Python39\include -IC:\Users\ASUS\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcsrc/libethash/io_win32.c /Fobuild\temp.win-amd64-3.9\Release\src/libethash/io_win32.obj -Isrc/ -std=gnu99 -Wall
cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
io_win32.c
c1: fatal error C1083: Cannot open source file: 'src/libethash/io_win32.c': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-iver41qv\\pyethash\\setup.py'"'"';
__file__='"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-iver41qv\\pyethash\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ASUS\AppData\Local\Temp\pip-record-3sfswv97\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\asus\desktop\ayush\programs\ethereum\starting_out\venv\include\site\python3.9\pyethash' Check the logs for full command output.
Seems like the problem is with running setup.py for pyethash on Windows. Found a possible solution by installing the source code and changing some files. Would doing so, let web3[tester] use the local copy of pyethash?
Thanks to everyone who help me figure out and correct the issue.
The text was updated successfully, but these errors were encountered:
ayushm2003
changed the title
Unable to install 'web3[tester]'. Command line warning - D9002
Unable to install 'web3[tester]'. Possible error while installing pyethash
Dec 4, 2020
@kclowes haven't tried using 3.8. But, think I figured out what the issue was. ethash doesn't support Windows.
One can do a workaround though, by changing some code in source files.
See - ethereum/ethash#104 (comment)
pip freeze
outputWhat was wrong?
Please include any of the following that are applicable:
pip install 'web3[tester]'
Seems like the problem is with running setup.py for
pyethash
on Windows. Found a possible solution by installing the source code and changing some files. Would doing so, letweb3[tester]
use the local copy ofpyethash
?Thanks to everyone who help me figure out and correct the issue.
The text was updated successfully, but these errors were encountered: