-
Notifications
You must be signed in to change notification settings - Fork 225
Description
Hi ofek,
I'm getting the following error when trying to use the bit library in Termux:
Traceback (most recent call last): File "<string>", line 1, in <module> File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/bit/__init__.py", line 1, in <module> from bit.format import verify_sig File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/bit/format.py", line 1, in <module> from coincurve import verify_signature as _vs File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/coincurve/__init__.py", line 1, in <module> from coincurve.context import GLOBAL_CONTEXT, Context File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/coincurve/context.py", line 5, in <module> from coincurve.flags import CONTEXT_FLAGS, CONTEXT_NONE File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/coincurve/flags.py", line 1, in <module> from ._libsecp256k1 import lib ImportError: dlopen failed: cannot locate symbol "_Py_NoneStruct" referenced by "/data/data/com.termux/files/usr/lib/python3.12/site-packages/coincurve/_libsecp256k1.cpython-312.so"...
Steps to Reproduce:
-
Install bit in Termux:
bash
pip install bit -
Run:
bash
python -c 'from bit import Key'
Environment:
- Termux on Android aarch64
- Python 3.12
What I’ve Tried:
- Reinstalling bit and coincurve.
- Installing libsecp256k1.
Please help fix this issue or suggest a workaround for Python 3.12.
Thank you!