AntonKueltz / fastecdsa

Python library for fast elliptic curve crypto
https://pypi.python.org/pypi/fastecdsa
The Unlicense
263 stars 76 forks source link

Import Issues on macOS Monterey, Python 3.9, M1 Max #87

Closed bmchin closed 1 year ago

bmchin commented 1 year ago

After working through some issues installing fastecdsa (to include fixing issues with gmp header file) that might have been caused by Apple Silicon (M1 Max), I was finally able to install fastecdsa in my Python 3.9 environment. However, when trying to import curve, ecdsa, keys, point from fastecdsa, I'm getting the below ImportError.

ImportError: dlopen(/Users/xxxxx/PycharmProjects/Scrap/venv/update/lib/python3.9/site-packages/fastecdsa/_ecdsa.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace (___gmpz_add)

Has anyone else run into the issue on an M1 (Max) chip and have any ideas on how to fix? Thanks