Skip to content
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

Windows環境でも開発貢献できるようにしたい #21

Closed
Hidetomi opened this issue Dec 12, 2020 · 5 comments
Closed

Windows環境でも開発貢献できるようにしたい #21

Hidetomi opened this issue Dec 12, 2020 · 5 comments

Comments

@Hidetomi
Copy link

Hidetomi commented Dec 12, 2020

起きた事象

pip install web3[tester] のパッケージインストールでエラー。

試したこと

  • python-3.8.5-amd64 をインストール
  • Visual Studio Community 2019 をインストール
  • 「C++によるデスクトップ開発」をインストール
    • 厳密には Windows 10 SDK(10.0 18362.0) をインストール
  • pip install -r requirements\common.txt を実行

期待すること

  • WindowsOSでもリポジトリの開発環境を整えたい。
  • Widnows開発者向けのガイドラインが欲しい。

gitハッシュ値

(.venv) C:\gits\github\metemcyber>git rev-parse HEAD
200608fac78d3abeff3c7364d0c93e340b7cacfc

実行環境

  • OS(Windows)
PS C:\Windows\system32> Get-WmiObject Win32_OperatingSystem


SystemDirectory : C:\Windows\system32
Organization    :
BuildNumber     : 19041
RegisteredUser  : owner
Version         : 10.0.19041
  • visual studio
    image

  • Python

(.venv) C:\gits\github\metemcyber>python -V
Python 3.8.5

ログ等

エラーログ

(.venv) C:\gits\github\metemcyber>pip install web3[tester]
Collecting web3[tester]
  Using cached web3-5.13.1-py3-none-any.whl (466 kB)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.25.0)
Requirement already satisfied: eth-hash[pycryptodome]<1.0.0,>=0.2.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (0.2.0)
Requirement already satisfied: hexbytes<1.0.0,>=0.1.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (0.2.1)
Requirement already satisfied: jsonschema<4.0.0,>=3.2.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (3.2.0)
Requirement already satisfied: eth-typing<3.0.0,>=2.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.2.2)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: eth-abi<3.0.0,>=2.0.0b6 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.1.1)
Requirement already satisfied: protobuf<4,>=3.10.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (3.14.0)
Requirement already satisfied: eth-tester[py-evm]==v0.5.0-beta.3 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (0.5.0b3)
Requirement already satisfied: parsimonious<0.9.0,>=0.8.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-abi<3.0.0,>=2.0.0b6->web3[tester]) (0.8.1)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: eth-typing<3.0.0,>=2.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.2.2)
Collecting eth-account<0.6.0,>=0.5.3
  Using cached eth_account-0.5.4-py3-none-any.whl (94 kB)
Requirement already satisfied: hexbytes<1.0.0,>=0.1.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (0.2.1)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: eth-keys!=0.3.2,<0.4.0,>=0.2.1 in c:\gits\github\metemcyber\.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:\gits\github\metemcyber\.venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (2.0.1)
Requirement already satisfied: eth-abi<3.0.0,>=2.0.0b6 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.1.1)
Collecting bitarray<1.3.0,>=1.2.1
  Using cached bitarray-1.2.2.tar.gz (48 kB)
Requirement already satisfied: pycryptodome<4,>=3.6.6 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-hash[pycryptodome]<1.0.0,>=0.2.0->web3[tester]) (3.9.9)
Collecting eth-keyfile<0.6.0,>=0.5.0
  Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Requirement already satisfied: cytoolz<1.0.0,>=0.9.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-keyfile<0.6.0,>=0.5.0->eth-account<0.6.0,>=0.5.3->web3[tester]) (0.11.0)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: pycryptodome<4,>=3.6.6 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-hash[pycryptodome]<1.0.0,>=0.2.0->web3[tester]) (3.9.9)
Requirement already satisfied: eth-keys!=0.3.2,<0.4.0,>=0.2.1 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (0.3.3)
Requirement already satisfied: toolz>=0.8.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from cytoolz<1.0.0,>=0.9.0->eth-keyfile<0.6.0,>=0.5.0->eth-account<0.6.0,>=0.5.3->web3[tester]) (0.11.1)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: eth-typing<3.0.0,>=2.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.2.2)
Collecting eth-rlp<2,>=0.1.2
  Using cached eth_rlp-0.2.1-py3-none-any.whl (5.0 kB)
Requirement already satisfied: hexbytes<1.0.0,>=0.1.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (0.2.1)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: rlp<3,>=1.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (2.0.1)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: eth-keys!=0.3.2,<0.4.0,>=0.2.1 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (0.3.3)
Requirement already satisfied: semantic-version<3.0.0,>=2.6.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (2.8.5)
Requirement already satisfied: eth-abi<3.0.0,>=2.0.0b6 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.1.1)
Requirement already satisfied: rlp<3,>=1.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (2.0.1)
Requirement already satisfied: eth-hash[pysha3]<1.0.0,>=0.1.4 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (0.2.0)
Requirement already satisfied: pysha3<2.0.0,>=1.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-hash[pysha3]<1.0.0,>=0.1.4->eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (1.0.2)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: eth-keys!=0.3.2,<0.4.0,>=0.2.1 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (0.3.3)
Requirement already satisfied: semantic-version<3.0.0,>=2.6.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (2.8.5)
Requirement already satisfied: eth-abi<3.0.0,>=2.0.0b6 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.1.1)
Requirement already satisfied: rlp<3,>=1.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (2.0.1)
Requirement already satisfied: cytoolz<1.0.0,>=0.9.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-keyfile<0.6.0,>=0.5.0->eth-account<0.6.0,>=0.5.3->web3[tester]) (0.11.0)
Requirement already satisfied: eth-typing<3.0.0,>=2.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.2.2)
Collecting ipfshttpclient==0.7.0a1
  Using cached ipfshttpclient-0.7.0a1-py3-none-any.whl (231 kB)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.25.0)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3[tester]) (0.17.3)
Requirement already satisfied: attrs>=17.4.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3[tester]) (20.3.0)
Requirement already satisfied: setuptools in c:\gits\github\metemcyber\.venv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3[tester]) (51.0.0)
Requirement already satisfied: six>=1.11.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3[tester]) (1.15.0)
Collecting lru-dict<2.0.0,>=1.1.6
  Using cached lru-dict-1.1.6.tar.gz (9.4 kB)
Collecting multiaddr>=0.0.7
  Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: varint in c:\gits\github\metemcyber\.venv\lib\site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.7.0a1->web3[tester]) (1.0.2)
Requirement already satisfied: netaddr in c:\gits\github\metemcyber\.venv\lib\site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.7.0a1->web3[tester]) (0.8.0)
Requirement already satisfied: base58 in c:\gits\github\metemcyber\.venv\lib\site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.7.0a1->web3[tester]) (2.0.1)
Requirement already satisfied: six>=1.11.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3[tester]) (1.15.0)
Requirement already satisfied: six>=1.11.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3[tester]) (1.15.0)
Requirement already satisfied: six>=1.11.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3[tester]) (1.15.0)
Collecting py-evm==0.3.0a20
  Using cached py_evm-0.3.0a20-py3-none-any.whl (242 kB)
Requirement already satisfied: cached-property<2,>=1.5.1 in c:\gits\github\metemcyber\.venv\lib\site-packages (from py-evm==0.3.0a20->eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (1.5.2)
Requirement already satisfied: rlp<3,>=1.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (2.0.1)
Requirement already satisfied: eth-keys!=0.3.2,<0.4.0,>=0.2.1 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (0.3.3)
Requirement already satisfied: mypy-extensions<1.0.0,>=0.4.1 in c:\gits\github\metemcyber\.venv\lib\site-packages (from py-evm==0.3.0a20->eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (0.4.3)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: trie==2.0.0-alpha.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from py-evm==0.3.0a20->eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (2.0.0a5)
Requirement already satisfied: eth-typing<3.0.0,>=2.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.2.2)
Collecting blake2b-py<0.2,>=0.1.2
  Using cached blake2b_py-0.1.3-cp38-none-win_amd64.whl (159 kB)
Collecting eth-bloom<2.0.0,>=1.0.3
  Using cached eth_bloom-1.0.3-py3-none-any.whl (5.4 kB)
Collecting py-ecc<5.0.0,>=1.4.7
  Using cached py_ecc-4.1.0-py3-none-any.whl (41 kB)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: mypy-extensions<1.0.0,>=0.4.1 in c:\gits\github\metemcyber\.venv\lib\site-packages (from py-evm==0.3.0a20->eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (0.4.3)
Requirement already satisfied: eth-typing<3.0.0,>=2.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.2.2)
Requirement already satisfied: cached-property<2,>=1.5.1 in c:\gits\github\metemcyber\.venv\lib\site-packages (from py-evm==0.3.0a20->eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (1.5.2)
Collecting py-geth<3,>=2.4.0
  Using cached py_geth-2.4.0-py3-none-any.whl (23 kB)
Requirement already satisfied: semantic-version<3.0.0,>=2.6.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (2.8.5)
Collecting pyethash<1.0.0,>=0.1.27
  Using cached pyethash-0.1.27.tar.gz (38 kB)
Collecting pypiwin32>=223
  Using cached pypiwin32-223-py3-none-any.whl (1.7 kB)
Requirement already satisfied: pywin32>=223 in c:\gits\github\metemcyber\.venv\lib\site-packages (from pypiwin32>=223->web3[tester]) (300)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\gits\github\metemcyber\.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:\gits\github\metemcyber\.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:\gits\github\metemcyber\.venv\lib\site-packages (from requests<3.0.0,>=2.16.0->web3[tester]) (1.26.2)
Requirement already satisfied: certifi>=2017.4.17 in c:\gits\github\metemcyber\.venv\lib\site-packages (from requests<3.0.0,>=2.16.0->web3[tester]) (2020.12.5)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: typing-extensions<4,>=3.7.4 in c:\gits\github\metemcyber\.venv\lib\site-packages (from trie==2.0.0-alpha.5->py-evm==0.3.0a20->eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (3.7.4.3)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: sortedcontainers<3,>=2.1.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from trie==2.0.0-alpha.5->py-evm==0.3.0a20->eth-tester[py-evm]==v0.5.0-beta.3->web3[tester]) (2.3.0)
Requirement already satisfied: rlp<3,>=1.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from eth-account<0.6.0,>=0.5.3->web3[tester]) (2.0.1)
Requirement already satisfied: hexbytes<1.0.0,>=0.1.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (0.2.1)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.25.0)
Requirement already satisfied: eth-hash[pycryptodome]<1.0.0,>=0.2.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (0.2.0)
Requirement already satisfied: hexbytes<1.0.0,>=0.1.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (0.2.1)
Requirement already satisfied: jsonschema<4.0.0,>=3.2.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (3.2.0)
Requirement already satisfied: eth-typing<3.0.0,>=2.0.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.2.2)
Requirement already satisfied: eth-utils<2.0.0,>=1.9.5 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (1.9.5)
Requirement already satisfied: eth-abi<3.0.0,>=2.0.0b6 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (2.1.1)
Requirement already satisfied: protobuf<4,>=3.10.0 in c:\gits\github\metemcyber\.venv\lib\site-packages (from web3[tester]) (3.14.0)
Collecting websockets<9.0.0,>=8.1.0
  Using cached websockets-8.1-cp38-cp38-win_amd64.whl (66 kB)
Using legacy 'setup.py install' for bitarray, since package 'wheel' is not installed.
Using legacy 'setup.py install' for lru-dict, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pyethash, since package 'wheel' is not installed.
Installing collected packages: pyethash, py-ecc, multiaddr, lru-dict, eth-rlp, eth-keyfile, eth-bloom, blake2b-py, bitarray, websockets, pypiwin32, py-evm, ipfshttpclient, eth-account, web3, py-geth
    Running setup.py install for pyethash ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\gits\github\metemcyber\.venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\owner\\AppData\\Local\\Temp\\pip-install-71g6utt7\\pyethash_2821beedb0294453a9693f45fa68c00a\\setup.py'"'"'; __file__='"'"'C:
\\Users\\owner\\AppData\\Local\\Temp\\pip-install-71g6utt7\\pyethash_2821beedb0294453a9693f45fa68c00a\\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\owner\AppData\Local\Temp\pip-record-e8usjydf\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\gits\github\metemcyber\.venv\include\site\python3.8\pyethash'
         cwd: C:\Users\owner\AppData\Local\Temp\pip-install-71g6utt7\pyethash_2821beedb0294453a9693f45fa68c00a\
    Complete output (71 lines):
    running install
    running build
    running build_ext
    building 'pyethash' extension
    creating build
    creating build\temp.win-amd64-3.8
    creating build\temp.win-amd64-3.8\Release
    creating build\temp.win-amd64-3.8\Release\src
    creating build\temp.win-amd64-3.8\Release\src\python
    creating build\temp.win-amd64-3.8\Release\src\libethash
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\gits\github\metemcyber\.venv\include -IC:\Users\owner\AppData\Local\Programs\Python\Python38\include -IC:\U
sers\owner\AppData\Local\Programs\Python\Python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\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/python/core.c /Fobuild\temp.win-amd64-3.8\Release\src/python/core.obj -Isrc/ -std=gnu99 -Wall
    cl : コマンド ライン warning D9002 : 不明なオプション '-std=gnu99' を無視します。
    core.c
    C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_io.h(49): warning C4820: '_finddata32i64_t': '4' バイトのパディングを データ メンバー 'name' の後に追加しました。
    C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_io.h(54): warning C4820: '_finddata64i32_t': '4' バイトのパディングを データ メンバー 'attrib' の後に追加しました。
    C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_io.h(64): warning C4820: '__finddata64_t': '4' バイトのパディングを データ メンバー 'attrib' の後に追加しました。
    C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_io.h(69): warning C4820: '__finddata64_t': '4' バイトのパディングを データ メンバー 'name' の後に追加しました。
    C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\time.h(36): warning C4820: '_timespec64': '4' バイトのパディングを データ メンバー 'tv_nsec' の後に追加しました。
    C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\time.h(43): warning C4820: 'timespec': '4' バイトのパディングを データ メンバー 'tv_nsec' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\object.h(182): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'slot' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\object.h(190): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'flags' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/object.h(212): warning C4820: '_typeobject': '4' バイトのパディングを データ メンバー 'tp_flags' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/object.h(256): warning C4820: '_typeobject': '4' バイトのパディングを データ メンバー 'tp_version_tag' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\pytime.h(123): warning C4115: 'timeval': 関数の仮引数リストで構造体、共用体、列挙型の定義に使われました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\bytearrayobject.h(30): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'ob_exports' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\bytesobject.h(41): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'ob_sval' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\bytesobject.h(165): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'small_buffer' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/unicodeobject.h(221): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'state' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/unicodeobject.h(625): warning C4820: '<unnamed-tag>': '2' バイトのパディングを データ メンバー 'readonly' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\longintrepr.h(88): warning C4820: '_longobject': '4' バイトのパディングを データ メンバー 'ob_digit' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\memoryobject.h(45): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'flags' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\memoryobject.h(62): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'flags' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\methodobject.h(56): warning C4820: 'PyMethodDef': '4' バイトのパディングを データ メンバー 'ml_flags' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\moduleobject.h(63): warning C4820: 'PyModuleDef_Slot': '4' バイトのパディングを データ メンバー 'slot' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/initconfig.h(16): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー '_type' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/initconfig.h(19): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'exitcode' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/initconfig.h(202): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'parse_argv' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/initconfig.h(357): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'legacy_windows_stdio' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/initconfig.h(367): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'pathconfig_warnings' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/initconfig.h(374): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'module_search_paths_set' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/initconfig.h(393): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'skip_source_first_line' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pystate.h(65): warning C4820: '_ts': '2' バイトのパディングを データ メンバー 'recursion_critical' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pystate.h(73): warning C4820: '_ts': '4' バイトのパディングを データ メンバー 'use_tracing' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pystate.h(96): warning C4820: '_ts': '4' バイトのパディングを データ メンバー 'gilstate_counter' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pystate.h(130): warning C4820: '_ts': '4' バイトのパディングを データ メンバー 'coroutine_origin_tracking_depth' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\genobject.h(35): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'gi_running' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\genobject.h(55): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'cr_running' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\genobject.h(72): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'ag_running' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\genobject.h(85): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'ag_running_async' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\descrobject.h(29): warning C4820: 'wrapperbase': '4' バイトのパディングを データ メンバー 'offset' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\descrobject.h(33): warning C4820: 'wrapperbase': '4' バイトのパディングを データ メンバー 'flags' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\structseq.h(20): warning C4820: 'PyStructSequence_Desc': '4' バイトのパディングを データ メンバー 'n_in_sequence' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pyerrors.h(19): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'suppress_context' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pyerrors.h(23): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'suppress_context' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pyerrors.h(33): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'suppress_context' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pyerrors.h(40): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'suppress_context' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pyerrors.h(49): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'suppress_context' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pyerrors.h(54): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'suppress_context' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\cpython/pyerrors.h(66): warning C4820: '<unnamed-tag>': '7' バイトのパディングを データ メンバー 'suppress_context' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\modsupport.h(97): warning C4820: '_PyArg_Parser': '4' バイトのパディングを データ メンバー 'max' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\code.h(32): warning C4820: '<unnamed-tag>': '4' バイトのパディングを データ メンバー 'co_firstlineno' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\code.h(69): warning C4820: '<unnamed-tag>': '3' バイトのパディングを データ メンバー 'co_opcache_size' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\import.h(138): warning C4820: '_frozen': '4' バイトのパディングを データ メンバー 'size' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\fileutils.h(73): warning C4820: '_Py_stat_struct': '4' バイトのパディングを データ メンバー 'st_dev' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\fileutils.h(75): warning C4820: '_Py_stat_struct': '2' バイトのパディングを データ メンバー 'st_mode' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\fileutils.h(79): warning C4820: '_Py_stat_struct': '4' バイトのパディングを データ メンバー 'st_rdev' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\fileutils.h(82): warning C4820: '_Py_stat_struct': '4' バイトのパディングを データ メンバー 'st_atime_nsec' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\fileutils.h(84): warning C4820: '_Py_stat_struct': '4' バイトのパディングを データ メンバー 'st_mtime_nsec' の後に追加しました。
    C:\Users\owner\AppData\Local\Programs\Python\Python38\include\fileutils.h(88): warning C4820: '_Py_stat_struct': '4' バイトのパディングを データ メンバー 'st_reparse_tag' の後に追加しました。
    src/python/core.c(2): fatal error C1083: include ファイルを開けません。'alloca.h':No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\gits\github\metemcyber\.venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\owner\\AppData\\Local\\Temp\\pip-install-71g6utt7\\pyethash_2821beedb0294453a9693f45fa68c00a
\\setup.py'"'"'; __file__='"'"'C:\\Users\\owner\\AppData\\Local\\Temp\\pip-install-71g6utt7\\pyethash_2821beedb0294453a9693f45fa68c00a\\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\owner\AppData\Local\Temp\pip-record-e8usjydf\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\gits\github\metemcyber\.venv\include\site\python3.8\pye
thash' Check the logs for full command output.
@Hidetomi
Copy link
Author

試したこと(追加)

  • エラーが出ているpyethash側のissueを確認。

pyethash issue#104にWindows10でもインストール出来たとのコメントがあったので試しましたが、
私の環境のせいなのか、他の原因なのか、うまくいかず。。。

Installing collected packages: eth-hash, pyethash, py-ecc, multiaddr, lru-dict, eth-rlp, eth-keyfile, eth-bloom, blake2b-py, bitarray, websockets, pypiwin32, py-evm, ipfshttpclient, eth-account, web3, py-geth
  Attempting uninstall: pyethash
    Found existing installation: pyethash 23.1
ERROR: Cannot uninstall 'pyethash'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

@Hidetomi
Copy link
Author

setup.pyversion を、PyPiで公開されている番号 0.1.27 に書き換えたところ、pip install が成功しました。

image

pyethashのリポジトリのmasterブランチは0.1.23、tag、releaseはv23.1
PyPiで提供されているバージョンとの不一致についてはまだ答えが出せていません。

@mshim03
Copy link
Contributor

mshim03 commented Dec 15, 2020

本件issueありがとうございます。

少し調べたところ、Pyethhashが現在メンテされておらず、Linux以外のOSでは動かないという報告が上がっているようですが、PRなども放置されているのが現状のようです。 参考

( Pythonのバージョンに関しても 議論 がされているようですが、答えが出ていません)

  • WindowsOSでもリポジトリの開発環境を整えたい。
  • Widnows開発者向けのガイドラインが欲しい。

上記などの理由から、Windows対応はすぐには難しいかもしれません。

requirements.txt を以下のように変更し、py-evm を利用しない様にすれば可能かもしれませんが、未検証です

- web3[tester]==5.13.1
+ web3==5.13.1
- py-evm>=0.3.0a20,<0.4
- eth-tester>=0.5.0b3,<0.6

Windowsで開発する場合は、WSL2 を利用していただくのが確実かもしれません。

@Hidetomi
Copy link
Author

ご回答頂きありがとうございます。
Windows上での開発環境を整えることは諸々の事情により厳しいことを把握しました。

@nitky
Copy link
Contributor

nitky commented Dec 23, 2020

現状Windowsの場合、WSL2での開発を推奨。Web3.pyのWindows対応待ち。

@nitky nitky closed this as completed Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants