ethereum / py-evm

A Python implementation of the Ethereum Virtual Machine
https://py-evm.readthedocs.io/en/latest/
MIT License
2.27k stars 654 forks source link

On Windows 10 #2030

Open Gresliebear opened 3 years ago

Gresliebear commented 3 years ago

What is wrong?

pip3 install -U py-evm creates a error Please include information like:

(vessel_env) PS E:\OpenVesselFin\jubilant-market\PythonServer> pip3 install -U py-evm
Collecting py-evm
  Using cached py_evm-0.4.0a4-py3-none-any.whl (258 kB)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.4 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from py-evm) (1.10.0)
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 e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from py-evm) (2.0.0a5)
Requirement already satisfied: rlp<3,>=2 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from py-evm) (2.0.1)
Requirement already satisfied: eth-keys<0.4.0,>=0.2.1 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from py-evm) (0.3.3)
Collecting eth-bloom<2.0.0,>=1.0.3
  Using cached eth_bloom-1.0.4-py3-none-any.whl (5.4 kB)
Requirement already satisfied: eth-typing<3.0.0,>=2.2.0 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from py-evm) (2.2.2)
Requirement already satisfied: lru-dict>=1.1.6 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from py-evm) (1.1.7)
Collecting py-ecc<5.0.0,>=1.4.7
  Using cached py_ecc-4.1.0-py3-none-any.whl (41 kB)
Collecting blake2b-py<0.2,>=0.1.4
  Using cached blake2b_py-0.1.4-cp39-none-win_amd64.whl (93 kB)
Requirement already satisfied: mypy-extensions<1.0.0,>=0.4.1 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from py-evm) (0.4.3)
Requirement already satisfied: cached-property<2,>=1.5.1 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from py-evm) (1.5.2)
Requirement already satisfied: sortedcontainers<3,>=2.1.0 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from trie==2.0.0-alpha.5->py-evm) (2.4.0)
Requirement already satisfied: eth-hash<1.0.0,>=0.1.0 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from trie==2.0.0-alpha.5->py-evm) (0.3.2)
Requirement already satisfied: typing-extensions<4,>=3.7.4 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from trie==2.0.0-alpha.5->py-evm) (3.10.0.2)
Requirement already satisfied: hexbytes<0.3.0,>=0.2.0 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from trie==2.0.0-alpha.5->py-evm) (0.2.2)
Requirement already satisfied: pycryptodome<4,>=3.6.6 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from eth-hash<1.0.0,>=0.1.0->trie==2.0.0-alpha.5->py-evm) (3.10.1)
Requirement already satisfied: cytoolz<1.0.0,>=0.10.1 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from eth-utils<2.0.0,>=1.9.4->py-evm) (0.11.0)
Requirement already satisfied: toolz>=0.8.0 in e:\openvesselfin\jubilant-market\pythonserver\vessel_env\lib\site-packages (from cytoolz<1.0.0,>=0.10.1->eth-utils<2.0.0,>=1.9.4->py-evm) (0.11.1)
Building wheels for collected packages: pyethash
  Building wheel for pyethash (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'e:\openvesselfin\jubilant-market\pythonserver\vessel_env\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lesli\\AppData\\Local\\Temp\\pip-install-5mu63gj1\\pyethash_25228676b83348db89f247b1867a4350\\setup.py'"'"'; __file__='"'"'C:\\Users\\lesli\\AppData\\Local\\Temp\\pip-install-5mu63gj1\\pyethash_25228676b83348db89f247b1867a4350\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\lesli\AppData\Local\Temp\pip-wheel-u1qn4qle'
       cwd: C:\Users\lesli\AppData\Local\Temp\pip-install-5mu63gj1\pyethash_25228676b83348db89f247b1867a4350\
  Complete output (21 lines):
  running bdist_wheel
  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
  d:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ie:\openvesselfin\jubilant-market\pythonserver\vessel_env\include -IC:\Python39\include -IC:\Python39\include -Id:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.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
  d:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ie:\openvesselfin\jubilant-market\pythonserver\vessel_env\include -IC:\Python39\include -IC:\Python39\include -Id:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.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
  d:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ie:\openvesselfin\jubilant-market\pythonserver\vessel_env\include -IC:\Python39\include -IC:\Python39\include -Id:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.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 'd:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  ----------------------------------------
  ERROR: Failed building wheel for pyethash
  Running setup.py clean for pyethash
Failed to build pyethash
Installing collected packages: pyethash, py-ecc, eth-bloom, blake2b-py, py-evm
    Running setup.py install for pyethash ... error
    ERROR: Command errored out with exit status 1:
     command: 'e:\openvesselfin\jubilant-market\pythonserver\vessel_env\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lesli\\AppData\\Local\\Temp\\pip-install-5mu63gj1\\pyethash_25228676b83348db89f247b1867a4350\\setup.py'"'"'; __file__='"'"'C:\\Users\\lesli\\AppData\\Local\\Temp\\pip-install-5mu63gj1\\pyethash_25228676b83348db89f247b1867a4350\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\lesli\AppData\Local\Temp\pip-record-ckd0o6mz\install-record.txt' --single-version-externally-managed --compile --install-headers 'e:\openvesselfin\jubilant-market\pythonserver\vessel_env\include\site\python3.9\pyethash'
         cwd: C:\Users\lesli\AppData\Local\Temp\pip-install-5mu63gj1\pyethash_25228676b83348db89f247b1867a4350\
    Complete output (21 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
    d:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ie:\openvesselfin\jubilant-market\pythonserver\vessel_env\include -IC:\Python39\include -IC:\Python39\include -Id:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.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
    d:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ie:\openvesselfin\jubilant-market\pythonserver\vessel_env\include -IC:\Python39\include -IC:\Python39\include -Id:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.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
    d:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ie:\openvesselfin\jubilant-market\pythonserver\vessel_env\include -IC:\Python39\include -IC:\Python39\include -Id:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.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 'd:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'e:\openvesselfin\jubilant-market\pythonserver\vessel_env\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lesli\\AppData\\Local\\Temp\\pip-install-5mu63gj1\\pyethash_25228676b83348db89f247b1867a4350\\setup.py'"'"'; __file__='"'"'C:\\Users\\lesli\\AppData\\Local\\Temp\\pip-install-5mu63gj1\\pyethash_25228676b83348db89f247b1867a4350\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\lesli\AppData\Local\Temp\pip-record-ckd0o6mz\install-record.txt' --single-version-externally-managed --compile --install-headers 'e:\openvesselfin\jubilant-market\pythonserver\vessel_env\include\site\python3.9\pyethash' Check the logs for full command output.
WARNING: You are using pip version 21.1.1; however, version 21.2.4 is available.
You should consider upgrading via the 'e:\openvesselfin\jubilant-market\pythonserver\vessel_env\scripts\python.exe -m pip install --upgrade pip' command.

How can it be fixed

Fill this in if you know how to fix it.

Sabnock01 commented 3 years ago

Could you please provide some further details? Such as your version of Python and what it is you're specifically trying to do?