Open yuvadm opened 2 years ago
I had the same problem, though it was complaining about a different symbol:
ImportError: [...]/.local/lib/python3.11/site-packages/secp256k1/_libsecp256k1.cpython-311-x86_64-linux-gnu.so: undefined symbol: secp256k1_nonce_function_bip340
Turns out the system package libsecp256k1-devel
was interfering. It worked after I removed that package and reinstalled the Python package:
sudo dnf remove libsecp256k1-devel
pip uninstall secp256k1
pip install --no-cache-dir secp256k1
I had the same problem with the secp256k1_keypair_xonly_pub
symbol and removing system package helps.
Interesting why is it interfere with a system package?
Installed the library in a plain new venv running on Arch Linux with Python 3.10, gmp 6.2.1 and libffi 3.4.2 - build seems fine:
But on invocation getting this:
Any ideas where the linkage error is coming from?