AntonKueltz / fastecdsa

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

symbol not found in flat namespace '___gmpz_add' Error in version 2.3.2 #94

Closed wistoff closed 2 months ago

wistoff commented 2 months ago
from fastecdsa import _ecdsa
ImportError: dlopen(/Users/kjellxvx/opt/anaconda3/envs/myenv/lib/python3.8/site-packages/fastecdsa/_ecdsa.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '___gmpz_add'

I get this error on my Silicon Mac... None of the suggested solution in the other issues helped. This error does occur since version 2.3.2, the lastest update.

Installing the previous version fixes the issue.

pip3 install fastecdsa==2.3.1

AntonKueltz commented 2 months ago

Version 2.3.1 was yanked and should not be used because the C extensions were not correctly built. See the pypi release page for reference. Is GMP installed on your machine (brew install gmp)?

AntonKueltz commented 2 months ago

Looks like the same issue as this comment. Closing this issue, please use the linked issue to discuss further. Also, in the future please provide a full trace and code snippet that raised the error, that helps with root causing. Thanks.