AmateurDev
AmateurDev

Reputation: 129

M1 Mac: Running Brownie Python

Trying to run brownie but running into the following issues:


ImportError: dlopen(/opt/homebrew/lib/python3.9/site-packages/regex/_regex.cpython-39-darwin.so, 
2): no suitable image found.  Did find:

/opt/homebrew/lib/python3.9/site-packages/regex/_regex.cpython-39-darwin.so: 
   code signature in (/opt/homebrew/lib/python3.9/site-packages/regex/_regex.cpython-39-darwin.so) 
not valid for use in process using Library Validation: 

  Trying to load an unsigned library

Getting an error to load an unsigned lib for .cpython-39-darwin.so

Upvotes: 2

Views: 461

Answers (1)

etjones
etjones

Reputation: 41

Brownie has a dependency on the regex module, and its most recent version installs incorrectly on M1 Macs. See here for more commentary.

As a workaround, you could try the following in an environment with Brownie installed:

pip uninstall regex
pip install regex==2021.9.30
# to verify this is working
brownie init new_proj

Upvotes: 3

Related Questions