question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot get eth-brownie installed on a Macbook 2020 M1

See original GitHub issue

Environment information

  • brownie - Unable to install
  • ganache-cli Version: 6.12.2
  • solc Version: Not installed
  • Python Version: 3.10.0
  • OS: macOS Big Sur 11.6 (M1, 2020)

What was wrong?

I’ve tried pipx install eth-brownie and it will keep coming up with error: implicit declaration of function '_PyGen_Send' is invalid in C99 in the log which I have no idea how to get rid of.

CFLAGS=-Wno-error=implicit-function-declaration pipx install eth-brownie will let it install, but running brownie will then come up with this error:

  File "/Users/MY_USERNAME/.local/bin/brownie", line 5, in <module>
    from brownie._cli.__main__ import main
  File "/Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/brownie/__init__.py", line 6, in <module>
    from brownie.project import compile_source, run
  File "/Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/brownie/project/__init__.py", line 3, in <module>
    from .main import (  # NOQA 401
  File "/Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/brownie/project/main.py", line 44, in <module>
    from brownie.network import web3
  File "/Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/brownie/network/__init__.py", line 4, in <module>
    from .account import Accounts
  File "/Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/brownie/network/account.py", line 12, in <module>
    import eth_account
  File "/Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/eth_account/__init__.py", line 1, in <module>
    from eth_account.account import (  # noqa: F401
  File "/Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/eth_account/account.py", line 8, in <module>
    from cytoolz import (
  File "/Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/cytoolz/__init__.py", line 3, in <module>
    from .functoolz import *
ImportError: dlopen(/Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/cytoolz/functoolz.cpython-310-darwin.so, 2): Symbol not found: __PyGen_Send
  Referenced from: /Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/cytoolz/functoolz.cpython-310-darwin.so
  Expected in: flat namespace
 in /Users/MY_USERNAME/.local/pipx/venvs/eth-brownie/lib/python3.10/site-packages/cytoolz/functoolz.cpython-310-darwin.so

Also tried with no success:

  • Setting up the virtual environment with python -m venv venv => source venv/bin/activate => pip3 install eth-brownie
  • Git cloning the eth-brownie repo and running python3 setup.py install as suggested in the official documentation.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

9reactions
noevcommented, Nov 10, 2021

Managed to get it working with python 3.10 running, instaling cython and cytoolz first python3 -m pip install --user cython
python3 -m pip install --user cytoolz python3 -m pip install --user eth-brownie

4reactions
Doc-Failurecommented, Oct 26, 2021

Had the same problem. Use Python 3.9.5 and install Brownie v1.14.6 to solve the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing Brownie — Brownie 1.19.2 documentation
Installing Brownie¶. The recommended way to install Brownie is via pipx. Pipx is a tool to help you install and run end-user applications...
Read more >
Error installing eth-brownie in MacOS
First make sure you have Python3 installed, do a quick search for that and come back here once you have installed. First install...
Read more >
My MacBook Air M1 can't find the new MacO…
Question: Q: My MacBook Air M1 can't find the new MacOs Monterey and facetime, imessage and appstore do not work ... What can...
Read more >
install mysql mac m1 brew Code Example - Code Grepper
on Nov 29 2020 Comment ... Answers related to “install mysql mac m1 brew” ... how long does homebrew take to install ·...
Read more >
eth-brownie/community - Gitter
What would it take to sidestep that with pytest ? ... on Mac, somehow brownie triggers re-install of solidity deps "Installing solidity dependencies...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found