kevinheavey / anchorpy

The Python Anchor client.
https://kevinheavey.github.io/anchorpy/
MIT License
222 stars 59 forks source link

Recommended way to install on a Mac M1? #52

Closed cavaunpeu closed 2 years ago

cavaunpeu commented 2 years ago

pip install is creating the following wheel on both iTerm (amd64) and iTerm Rosetta (i386).

Created wheel for pyheck: filename=pyheck-0.1.4-cp39-abi3-macosx_10_7_x86_64.whl size=297671 sha256=48da256ebeaaae2a04fad1369aaaea3832f7642cce8dce96ee570dc2b03861b1

In both cases, when importing anchorpy, it imports pyheck, which throws throws:

ImportError: dlopen(/Users/will/.pyenv/versions/test/lib/python3.9/site-packages/pyheck/pyheck.abi3.so, 0x0002): tried: '/Users/will/.pyenv/versions/test/lib/python3.9/site-packages/pyheck/pyheck.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/pyheck.abi3.so' (no such file), '/usr/lib/pyheck.abi3.so' (no such file), '/Users/will/.pyenv/versions/3.9.1/envs/test/lib/python3.9/site-packages/pyheck/pyheck.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/pyheck.abi3.so' (no such file), '/usr/lib/pyheck.abi3.so' (no such file)

Thanks!

kevinheavey commented 2 years ago

Chatted on discord. Turns out OP just needed to upgrade pip to v21.0.1 or higher