eth-brownie / brownie

A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.

Home Page:https://eth-brownie.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue installing brownie on windows 11 with python 3.11.0

mattjaf opened this issue · comments

Environment information

  • brownie Version: latest
  • ganache Version: 7.5
  • solc Version: 0.0.0a0
  • Python Version: 3.11
  • OS: windows 11
  • node: 18.12.1 lts

What was wrong?

PS C:\Users\mattj> pipx install eth-brownie
Fatal error from pip prevented installation. Full pip output in file:
    C:\Users\mattj\.local\pipx\logs\cmd_2022-12-01_19.31.14_pip_errors.log

pip failed to build packages:
    bitarray
    cytoolz
    yarl

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    cytoolz/dicttoolz.c(209): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
    yarl/_quoting_c.c(196): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory

Error installing eth-brownie.

How can it be fixed?

Working on a solution,

I've read some people solved it by downgrading their python version, I would like to find a solution that does not resort to that.

here's the complete log file

PIP STDOUT
----------
Collecting eth-brownie
  Using cached eth_brownie-1.19.2-py3-none-any.whl (232 kB)
Collecting aiohttp==3.8.3
  Using cached aiohttp-3.8.3-cp311-cp311-win_amd64.whl (317 kB)
Collecting aiosignal==1.2.0
  Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting asttokens==2.0.5
  Using cached asttokens-2.0.5-py2.py3-none-any.whl (20 kB)
Collecting async-timeout==4.0.2
  Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting attrs==22.1.0
  Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting base58==2.1.1
  Using cached base58-2.1.1-py3-none-any.whl (5.6 kB)
Collecting bitarray==2.6.0
  Using cached bitarray-2.6.0.tar.gz (102 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting black==22.10.0
  Using cached black-22.10.0-cp311-cp311-win_amd64.whl (1.2 MB)
Collecting certifi==2022.9.24
  Using cached certifi-2022.9.24-py3-none-any.whl (161 kB)
Collecting charset-normalizer==2.1.1
  Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting click==8.1.3
  Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting cytoolz==0.12.0
  Using cached cytoolz-0.12.0-cp311-cp311-win_amd64.whl
Collecting dataclassy==0.11.1
  Using cached dataclassy-0.11.1-py3-none-any.whl (23 kB)
Collecting eip712==0.1.0
  Using cached eip712-0.1.0-py3-none-any.whl (13 kB)
Collecting eth-abi==2.2.0
  Using cached eth_abi-2.2.0-py3-none-any.whl (28 kB)
Collecting eth-account==0.5.9
  Using cached eth_account-0.5.9-py3-none-any.whl (101 kB)
Collecting eth-event==1.2.3
  Using cached eth_event-1.2.3-py3-none-any.whl (7.3 kB)
Collecting eth-hash[pycryptodome]==0.3.3
  Using cached eth_hash-0.3.3-py3-none-any.whl (8.9 kB)
Collecting eth-keyfile==0.5.1
  Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting eth-keys==0.3.4
  Using cached eth_keys-0.3.4-py3-none-any.whl (21 kB)
Collecting eth-rlp==0.2.1
  Using cached eth_rlp-0.2.1-py3-none-any.whl (5.0 kB)
Collecting eth-typing==2.3.0
  Using cached eth_typing-2.3.0-py3-none-any.whl (6.2 kB)
Collecting eth-utils==1.10.0
  Using cached eth_utils-1.10.0-py3-none-any.whl (24 kB)
Collecting execnet==1.9.0
  Using cached execnet-1.9.0-py2.py3-none-any.whl (39 kB)
Collecting frozenlist==1.3.1
  Using cached frozenlist-1.3.1.tar.gz (66 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting hexbytes==0.2.3
  Using cached hexbytes-0.2.3-py3-none-any.whl (6.4 kB)
Collecting hypothesis==6.27.3
  Using cached hypothesis-6.27.3-py3-none-any.whl (384 kB)
Collecting idna==3.4
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting inflection==0.5.0
  Using cached inflection-0.5.0-py2.py3-none-any.whl (5.8 kB)
Collecting iniconfig==1.1.1
  Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting ipfshttpclient==0.8.0a2
  Using cached ipfshttpclient-0.8.0a2-py3-none-any.whl (82 kB)
Collecting jsonschema==3.2.0
  Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting lazy-object-proxy==1.7.1
  Using cached lazy-object-proxy-1.7.1.tar.gz (41 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting lru-dict==1.1.8
  Using cached lru-dict-1.1.8.tar.gz (10 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting multiaddr==0.0.9
  Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Collecting multidict==6.0.2
  Using cached multidict-6.0.2-cp311-cp311-win_amd64.whl
Collecting mypy-extensions==0.4.3
  Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting mythx-models==1.9.1
  Using cached mythx_models-1.9.1-py2.py3-none-any.whl (82 kB)
Collecting netaddr==0.8.0
  Using cached netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
Collecting packaging==21.3
  Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting parsimonious==0.8.1
  Using cached parsimonious-0.8.1-py3-none-any.whl
Collecting pathspec==0.10.1
  Using cached pathspec-0.10.1-py3-none-any.whl (27 kB)
Collecting platformdirs==2.5.2
  Using cached platformdirs-2.5.2-py3-none-any.whl (14 kB)
Collecting pluggy==1.0.0
  Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting prompt-toolkit==3.0.31
  Using cached prompt_toolkit-3.0.31-py3-none-any.whl (382 kB)
Collecting protobuf==3.19.5
  Using cached protobuf-3.19.5-py2.py3-none-any.whl (162 kB)
Collecting psutil==5.9.2
  Using cached psutil-5.9.2.tar.gz (479 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting py==1.11.0
  Using cached py-1.11.0-py2.py3-none-any.whl (98 kB)
Collecting py-solc-ast==1.2.9
  Using cached py_solc_ast-1.2.9-py3-none-any.whl (10 kB)
Collecting py-solc-x==1.1.1
  Using cached py_solc_x-1.1.1-py3-none-any.whl (15 kB)
Collecting pycryptodome==3.15.0
  Using cached pycryptodome-3.15.0-cp35-abi3-win_amd64.whl (1.9 MB)
Collecting pygments==2.13.0
  Using cached Pygments-2.13.0-py3-none-any.whl (1.1 MB)
Collecting pygments-lexer-solidity==0.7.0
  Using cached pygments_lexer_solidity-0.7.0-py3-none-any.whl
Collecting pyjwt==1.7.1
  Using cached PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
Collecting pyparsing==3.0.9
  Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting pyrsistent==0.18.1
  Using cached pyrsistent-0.18.1.tar.gz (100 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pytest==6.2.5
  Using cached pytest-6.2.5-py3-none-any.whl (280 kB)
Collecting pytest-forked==1.4.0
  Using cached pytest_forked-1.4.0-py3-none-any.whl (4.9 kB)
Collecting pytest-xdist==1.34.0
  Using cached pytest_xdist-1.34.0-py2.py3-none-any.whl (36 kB)
Collecting python-dateutil==2.8.1
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting python-dotenv==0.16.0
  Using cached python_dotenv-0.16.0-py2.py3-none-any.whl (18 kB)
Collecting pythx==1.6.1
  Using cached pythx-1.6.1-py2.py3-none-any.whl (39 kB)
Collecting pyyaml==5.4.1
  Using cached PyYAML-5.4.1-cp311-cp311-win_amd64.whl
Collecting requests==2.28.1
  Using cached requests-2.28.1-py3-none-any.whl (62 kB)
Collecting rlp==2.0.1
  Using cached rlp-2.0.1-py2.py3-none-any.whl (20 kB)
Collecting semantic-version==2.10.0
  Using cached semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Collecting six==1.16.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting sortedcontainers==2.4.0
  Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting toml==0.10.2
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting tomli==2.0.1
  Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting toolz==0.12.0
  Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
Collecting tqdm==4.64.1
  Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
Collecting urllib3==1.26.12
  Using cached urllib3-1.26.12-py2.py3-none-any.whl (140 kB)
Collecting varint==1.0.2
  Using cached varint-1.0.2-py3-none-any.whl
Collecting vvm==0.1.0
  Using cached vvm-0.1.0-py3-none-any.whl (11 kB)
Collecting eth-brownie
  Using cached eth_brownie-1.19.1-py3-none-any.whl (232 kB)
Collecting aiohttp==3.8.1
  Using cached aiohttp-3.8.1.tar.gz (7.3 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting black==22.6.0
  Using cached black-22.6.0-py3-none-any.whl (156 kB)
Collecting certifi==2022.6.15
  Using cached certifi-2022.6.15-py3-none-any.whl (160 kB)
Collecting charset-normalizer==2.1.0
  Using cached charset_normalizer-2.1.0-py3-none-any.whl (39 kB)
Collecting hexbytes==0.2.2
  Using cached hexbytes-0.2.2-py3-none-any.whl (6.1 kB)
Collecting idna==3.3
  Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting pathspec==0.9.0
  Using cached pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
Collecting prompt-toolkit==3.0.30
  Using cached prompt_toolkit-3.0.30-py3-none-any.whl (381 kB)
Collecting protobuf==3.20.1
  Using cached protobuf-3.20.1-py2.py3-none-any.whl (162 kB)
Collecting psutil==5.9.1
  Using cached psutil-5.9.1.tar.gz (479 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pygments==2.12.0
  Using cached Pygments-2.12.0-py3-none-any.whl (1.1 MB)
Collecting semantic-version==2.8.5
  Using cached semantic_version-2.8.5-py2.py3-none-any.whl (15 kB)
Collecting tqdm==4.64.0
  Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting urllib3==1.26.11
  Using cached urllib3-1.26.11-py2.py3-none-any.whl (139 kB)
Collecting eth-brownie
  Using cached eth_brownie-1.19.0-py3-none-any.whl (232 kB)
Collecting attrs==21.4.0
  Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting bitarray==1.2.2
  Using cached bitarray-1.2.2.tar.gz (48 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting black==22.3.0
  Using cached black-22.3.0-py3-none-any.whl (153 kB)
Collecting certifi==2022.5.18.1
  Using cached certifi-2022.5.18.1-py3-none-any.whl (155 kB)
Collecting charset-normalizer==2.0.12
  Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting cytoolz==0.11.2
  Using cached cytoolz-0.11.2.tar.gz (481 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting eth-abi==2.1.1
  Using cached eth_abi-2.1.1-py3-none-any.whl (27 kB)
Collecting eth-account==0.5.7
  Using cached eth_account-0.5.7-py3-none-any.whl (101 kB)
Collecting eth-hash[pycryptodome]==0.3.2
  Using cached eth_hash-0.3.2-py3-none-any.whl (8.8 kB)
Collecting frozenlist==1.3.0
  Using cached frozenlist-1.3.0.tar.gz (65 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting lru-dict==1.1.7
  Using cached lru_dict-1.1.7-cp311-cp311-win_amd64.whl
Collecting prompt-toolkit==3.0.29
  Using cached prompt_toolkit-3.0.29-py3-none-any.whl (381 kB)
Collecting pycryptodome==3.14.1
  Using cached pycryptodome-3.14.1-cp35-abi3-win_amd64.whl (1.8 MB)
Collecting requests==2.27.1
  Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting toolz==0.11.2
  Using cached toolz-0.11.2-py3-none-any.whl (55 kB)
Collecting urllib3==1.26.9
  Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting eth-brownie
  Using cached eth_brownie-1.18.2-py3-none-any.whl (230 kB)
Collecting certifi==2021.10.8
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting psutil==5.9.0
  Using cached psutil-5.9.0.tar.gz (478 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting eth-brownie
  Using cached eth_brownie-1.18.1-py3-none-any.whl (225 kB)
Collecting black==22.1.0
  Using cached black-22.1.0-py3-none-any.whl (160 kB)
Collecting charset-normalizer==2.0.11
  Using cached charset_normalizer-2.0.11-py3-none-any.whl (39 kB)
Collecting click==8.0.3
  Using cached click-8.0.3-py3-none-any.whl (97 kB)
Collecting platformdirs==2.4.1
  Using cached platformdirs-2.4.1-py3-none-any.whl (14 kB)
Collecting prompt-toolkit==3.0.26
  Using cached prompt_toolkit-3.0.26-py3-none-any.whl (375 kB)
Collecting protobuf==3.19.4
  Using cached protobuf-3.19.4-py2.py3-none-any.whl (162 kB)
Collecting pygments==2.11.2
  Using cached Pygments-2.11.2-py3-none-any.whl (1.1 MB)
Collecting pyparsing==3.0.7
  Using cached pyparsing-3.0.7-py3-none-any.whl (98 kB)
Collecting tomli==2.0.0
  Using cached tomli-2.0.0-py3-none-any.whl (12 kB)
Collecting tqdm==4.62.3
  Using cached tqdm-4.62.3-py2.py3-none-any.whl (76 kB)
Collecting typing-extensions==4.0.1
  Using cached typing_extensions-4.0.1-py3-none-any.whl (22 kB)
Collecting urllib3==1.26.8
  Using cached urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
Collecting eth-brownie
  Using cached eth_brownie-1.18.0-py3-none-any.whl (225 kB)
  Using cached eth_brownie-1.17.2-py3-none-any.whl (221 kB)
Collecting async-timeout==4.0.1
  Using cached async_timeout-4.0.1-py3-none-any.whl (5.7 kB)
Collecting asynctest==0.13.0
  Using cached asynctest-0.13.0-py3-none-any.whl (26 kB)
Collecting attrs==21.2.0
  Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB)
Collecting black==21.11b1
  Using cached black-21.11b1-py3-none-any.whl (155 kB)
Collecting cached-property==1.5.2
  Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting charset-normalizer==2.0.9
  Using cached charset_normalizer-2.0.9-py3-none-any.whl (39 kB)
Collecting eth-account==0.5.6
  Using cached eth_account-0.5.6-py3-none-any.whl (101 kB)
Collecting eth-keys==0.3.3
  Using cached eth_keys-0.3.3-py3-none-any.whl (20 kB)
Collecting eth-typing==2.2.2
  Using cached eth_typing-2.2.2-py3-none-any.whl (6.2 kB)
Collecting frozenlist==1.2.0
  Using cached frozenlist-1.2.0.tar.gz (65 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting importlib-metadata==4.8.2
  Using cached importlib_metadata-4.8.2-py3-none-any.whl (17 kB)
Collecting lazy-object-proxy==1.6.0
  Using cached lazy_object_proxy-1.6.0-cp311-cp311-win_amd64.whl
Collecting multidict==5.2.0
  Using cached multidict-5.2.0.tar.gz (49 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting platformdirs==2.4.0
  Using cached platformdirs-2.4.0-py3-none-any.whl (14 kB)
Collecting prompt-toolkit==3.0.23
  Using cached prompt_toolkit-3.0.23-py3-none-any.whl (374 kB)
Collecting protobuf==3.19.1
  Using cached protobuf-3.19.1-py2.py3-none-any.whl (162 kB)
Collecting psutil==5.8.0
  Using cached psutil-5.8.0-cp311-cp311-win_amd64.whl
Collecting pycryptodome==3.12.0
  Using cached pycryptodome-3.12.0-cp35-abi3-win_amd64.whl (1.8 MB)
Collecting pygments==2.10.0
  Using cached Pygments-2.10.0-py3-none-any.whl (1.0 MB)
Collecting pyparsing==3.0.6
  Using cached pyparsing-3.0.6-py3-none-any.whl (97 kB)
Collecting pyrsistent==0.18.0
  Using cached pyrsistent-0.18.0-cp311-cp311-win_amd64.whl
Collecting pytest-forked==1.3.0
  Using cached pytest_forked-1.3.0-py2.py3-none-any.whl (4.7 kB)
Collecting regex==2021.11.10
  Using cached regex-2021.11.10.tar.gz (702 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting requests==2.26.0
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting tomli==1.2.2
  Using cached tomli-1.2.2-py3-none-any.whl (12 kB)
Collecting typed-ast==1.5.1
  Using cached typed_ast-1.5.1.tar.gz (252 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting typing-extensions==3.10.0.2
  Using cached typing_extensions-3.10.0.2-py3-none-any.whl (26 kB)
Collecting urllib3==1.26.7
  Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
Collecting eth-brownie
  Using cached eth_brownie-1.17.1-py3-none-any.whl (221 kB)
Collecting aiohttp==3.7.4.post0
  Using cached aiohttp-3.7.4.post0-py3-none-any.whl
Collecting asttokens==2.0.4
  Using cached asttokens-2.0.4-py2.py3-none-any.whl (20 kB)
Collecting async-timeout==3.0.1
  Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting base58==2.1.0
  Using cached base58-2.1.0-py3-none-any.whl (5.6 kB)
Collecting black==21.9b0
  Using cached black-21.9b0-py3-none-any.whl (148 kB)
Collecting chardet==4.0.0
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting charset-normalizer==2.0.7
  Using cached charset_normalizer-2.0.7-py3-none-any.whl (38 kB)
Collecting cytoolz==0.11.0
  Using cached cytoolz-0.11.0.tar.gz (477 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting hypothesis==6.24.0
  Using cached hypothesis-6.24.0-py3-none-any.whl (381 kB)
Collecting packaging==21.0
  Using cached packaging-21.0-py3-none-any.whl (40 kB)
Collecting prompt-toolkit==3.0.21
  Using cached prompt_toolkit-3.0.21-py3-none-any.whl (374 kB)
Collecting protobuf==3.19.0
  Using cached protobuf-3.19.0-py2.py3-none-any.whl (162 kB)
Collecting py==1.10.0
  Using cached py-1.10.0-py2.py3-none-any.whl (97 kB)
Collecting pycryptodome==3.11.0
  Using cached pycryptodome-3.11.0-cp35-abi3-win_amd64.whl (1.8 MB)
Collecting pyparsing==3.0.3
  Using cached pyparsing-3.0.3-py3-none-any.whl (96 kB)
Collecting regex==2021.10.23
  Using cached regex-2021.10.23.tar.gz (703 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting toolz==0.11.1
  Using cached toolz-0.11.1-py3-none-any.whl (55 kB)
Collecting eth-brownie
  Using cached eth_brownie-1.17.0-py3-none-any.whl (221 kB)
Collecting dataclassy==0.11.0
  Using cached dataclassy-0.11.0-py3-none-any.whl (23 kB)
Collecting hypothesis==6.23.2
  Using cached hypothesis-6.23.2-py3-none-any.whl (381 kB)
Collecting idna==3.2
  Using cached idna-3.2-py3-none-any.whl (59 kB)
Collecting prompt-toolkit==3.0.20
  Using cached prompt_toolkit-3.0.20-py3-none-any.whl (370 kB)
Collecting protobuf==3.18.1
  Using cached protobuf-3.18.1-py2.py3-none-any.whl (174 kB)
Collecting pyparsing==2.4.7
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting regex==2021.10.8
  Using cached regex-2021.10.8.tar.gz (703 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting rlp==1.2.0
  Using cached rlp-1.2.0-py2.py3-none-any.whl (19 kB)
Collecting tomli==1.2.1
  Using cached tomli-1.2.1-py3-none-any.whl (11 kB)
Collecting eth-brownie
  Using cached eth_brownie-1.16.4-py3-none-any.whl (219 kB)
Collecting certifi==2021.5.30
  Using cached certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
Collecting charset-normalizer==2.0.6
  Using cached charset_normalizer-2.0.6-py3-none-any.whl (37 kB)
Collecting click==8.0.1
  Using cached click-8.0.1-py3-none-any.whl (97 kB)
Collecting dataclassy==0.10.4
  Using cached dataclassy-0.10.4-py3-none-any.whl (23 kB)
Collecting eth-account==0.5.5
  Using cached eth_account-0.5.5-py3-none-any.whl (100 kB)
Collecting hypothesis==6.21.6
  Using cached hypothesis-6.21.6-py3-none-any.whl (381 kB)
Collecting multidict==5.1.0
  Using cached multidict-5.1.0-cp311-cp311-win_amd64.whl
Collecting platformdirs==2.3.0
  Using cached platformdirs-2.3.0-py3-none-any.whl (13 kB)
Collecting protobuf==3.18.0
  Using cached protobuf-3.18.0-py2.py3-none-any.whl (174 kB)
Collecting py-solc-x==1.1.0
  Using cached py_solc_x-1.1.0-py3-none-any.whl (15 kB)
Collecting pycryptodome==3.10.1
  Using cached pycryptodome-3.10.1-cp35-abi3-win_amd64.whl (1.6 MB)
Collecting regex==2021.8.28
  Using cached regex-2021.8.28-cp311-cp311-win_amd64.whl
Collecting urllib3==1.26.6
  Using cached urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
Collecting vyper==0.2.16
  Using cached vyper-0.2.16-py3-none-any.whl (236 kB)
Collecting wcwidth==0.2.5
  Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting web3==5.23.1
  Using cached web3-5.23.1-py3-none-any.whl (486 kB)
Collecting websockets==9.1
  Using cached websockets-9.1-cp311-cp311-win_amd64.whl
Collecting wrapt==1.12.1
  Using cached wrapt-1.12.1-cp311-cp311-win_amd64.whl
Collecting yarl==1.6.3
  Using cached yarl-1.6.3.tar.gz (176 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting colorama
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Requirement already satisfied: setuptools in c:\users\mattj\.local\pipx\shared\lib\site-packages (from jsonschema==3.2.0->eth-brownie) (65.6.3)
Collecting atomicwrites>=1.0
  Using cached atomicwrites-1.4.1-py2.py3-none-any.whl
Collecting pywin32>=223
  Using cached pywin32-305-cp311-cp311-win_amd64.whl (12.1 MB)
Building wheels for collected packages: bitarray, cytoolz, yarl
  Building wheel for bitarray (setup.py): started
  Building wheel for bitarray (setup.py): finished with status 'error'
  Running setup.py clean for bitarray
  Building wheel for cytoolz (setup.py): started
  Building wheel for cytoolz (setup.py): finished with status 'error'
  Running setup.py clean for cytoolz
  Building wheel for yarl (pyproject.toml): started
  Building wheel for yarl (pyproject.toml): finished with status 'error'
Failed to build bitarray cytoolz yarl

PIP STDERR
----------
WARNING: The candidate selected for download or install is a yanked version: 'protobuf' candidate (version 3.18.0 at https://files.pythonhosted.org/packages/74/4e/9f3cb458266ef5cdeaa1e72a90b9eda100e3d1803cbd7ec02f0846da83c3/protobuf-3.18.0-py2.py3-none-any.whl (from https://pypi.org/simple/protobuf/))
Reason for being yanked: This version claims to support Python 2 but does not
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      _bitarray.c
      bitarray/_bitarray.c(126): error C2106: '=': left operand must be l-value
      bitarray/_bitarray.c(151): error C2106: '=': left operand must be l-value
      bitarray/_bitarray.c(172): error C2106: '=': left operand must be l-value
      bitarray/_bitarray.c(1429): warning C4996: 'PyEval_CallObjectWithKeywords': deprecated in 3.9
      bitarray/_bitarray.c(1568): warning C4996: 'PyEval_CallObjectWithKeywords': deprecated in 3.9
      bitarray/_bitarray.c(3273): error C2106: '=': left operand must be l-value
      bitarray/_bitarray.c(3274): error C2106: '=': left operand must be l-value
      bitarray/_bitarray.c(3275): error C2106: '=': left operand must be l-value
      bitarray/_bitarray.c(3276): error C2106: '=': left operand must be l-value
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\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 bitarray
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [56 lines of output]
      ALERT: Cython not installed.  Building without Cython.
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\compatibility.py -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\utils_test.py -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\_signatures.py -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\_version.py -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\__init__.py -> build\lib.win-amd64-cpython-311\cytoolz
      creating build\lib.win-amd64-cpython-311\cytoolz\curried
      copying cytoolz\curried\exceptions.py -> build\lib.win-amd64-cpython-311\cytoolz\curried
      copying cytoolz\curried\operator.py -> build\lib.win-amd64-cpython-311\cytoolz\curried
      copying cytoolz\curried\__init__.py -> build\lib.win-amd64-cpython-311\cytoolz\curried
      copying cytoolz\dicttoolz.pyx -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\functoolz.pyx -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\itertoolz.pyx -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\recipes.pyx -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\utils.pyx -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\cpython.pxd -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\dicttoolz.pxd -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\functoolz.pxd -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\itertoolz.pxd -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\recipes.pxd -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\utils.pxd -> build\lib.win-amd64-cpython-311\cytoolz
      copying cytoolz\__init__.pxd -> build\lib.win-amd64-cpython-311\cytoolz
      creating build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\dev_skip_test.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_compatibility.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_curried.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_curried_toolzlike.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_dev_skip_test.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_dicttoolz.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_docstrings.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_doctests.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_embedded_sigs.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_functoolz.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_inspect_args.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_itertoolz.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_none_safe.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_recipes.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_serialization.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_signatures.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_tlz.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      copying cytoolz\tests\test_utils.py -> build\lib.win-amd64-cpython-311\cytoolz\tests
      running build_ext
      building 'cytoolz.dicttoolz' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\cytoolz
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\mattj\.local\pipx\venvs\eth-brownie\include -IC:\Python311\include -IC:\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /Tccytoolz/dicttoolz.c /Fobuild\temp.win-amd64-cpython-311\Release\cytoolz/dicttoolz.obj
      dicttoolz.c
      cytoolz/dicttoolz.c(209): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\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 cytoolz
  error: subprocess-exited-with-error
  
  × Building wheel for yarl (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [44 lines of output]
      C:\Users\mattj\AppData\Local\Temp\pip-build-env-l078oc0h\overlay\Lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)
      **********************
      * Accellerated build *
      **********************
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\yarl
      copying yarl\_quoting.py -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\_quoting_py.py -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\_url.py -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\__init__.py -> build\lib.win-amd64-cpython-311\yarl
      running egg_info
      writing yarl.egg-info\PKG-INFO
      writing dependency_links to yarl.egg-info\dependency_links.txt
      writing requirements to yarl.egg-info\requires.txt
      writing top-level names to yarl.egg-info\top_level.txt
      reading manifest file 'yarl.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '*.cache' found anywhere in distribution
      warning: no previously-included files found matching 'yarl\*.html'
      warning: no previously-included files found matching 'yarl\*.so'
      warning: no previously-included files found matching 'yarl\*.pyd'
      no previously-included directories found matching 'docs\_build'
      adding license file 'LICENSE'
      writing manifest file 'yarl.egg-info\SOURCES.txt'
      copying yarl\__init__.pyi -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\_quoting_c.c -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\_quoting_c.pyi -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\_quoting_c.pyx -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\py.typed -> build\lib.win-amd64-cpython-311\yarl
      running build_ext
      building 'yarl._quoting_c' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\yarl
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\mattj\.local\pipx\venvs\eth-brownie\include -IC:\Python311\include -IC:\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /Tcyarl/_quoting_c.c /Fobuild\temp.win-amd64-cpython-311\Release\yarl/_quoting_c.obj
      _quoting_c.c
      yarl/_quoting_c.c(196): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\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 yarl
ERROR: Could not build wheels for yarl, which is required to install pyproject.toml-based projects

Might be related to this #1638

does brownie not support python 3.11.0 with ganache 7.5.0?

target-version = ['py37', 'py38', 'py39']

it installed fine on 3.9....

I have the same problem on python 3.10.2 how can I resolve it please?

I have the same problem on python 3.10.2 how can I resolve it please?

If you have a appropriate version of ganache installed and its not working with pip nor pipx, you might have to downgrade your python version.

or try to install calina-c's version

https://github.com/calina-c/brownie

commented

using MacOS I created a virtual environment and within that I used sudo python3.9 -m pip install eth-brownie and it installed. My system is using Python3.11 and thats what I created the venv but didnt effect the install within that venv

Hey guys, I managed to get brownie to work. The issue is combability between Python 3.11 and brownie, what I did was:

  • Uninstalled Python 3.11 and downgraded to the last know stable compatibility of Python with Brownie which is Python 3.9
  • I then installed brownie using pip instead of pipx but then used venv with the path file to get the virtual environment created to work with brownie
  • P.S. if you want a virtual environment on install use pipx install eth-brownie instead of pip.

Give it a try and see if it works for you guys

please tell me more specifically what version of python 3.9?, which is appropriate to install brownie

Support for python 3.10-3.12 is introduced with brownie v1.20.0. But also note that I am no longer actively maintaining this repository.