Closed Ango87 closed 2 years ago
Did you install the requirements ?
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
ERROR: Command errored out with exit status 1: /usr/bin/python2 /usr/local/lib/python2.7/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-y_aEE9/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'cffi>=1.3.0' requests Check the logs for full command output.
Try using Python version 3
What OS version are you using?
What OS version are you using?
Android
@meesvw
$ ls
Btcbf.py _config.yml requirements.txt
README.md address.txt
blink@localhost:/storage/emulated/0/Download/Btcbf-main$ python3 Btcbf.py
Traceback (most recent call last):
File "/sdcard/Download/Btcbf-main/Btcbf.py", line 3, in
I don't recommend running this on an Android device, but if you really want to you could try this:
pip3 install -r requirements.txt
This command will install the requirements using python3.
Next rerun the script if you get no errors. This should solve that the requirements can't install. If you still get errors it's probably because arm isn't supported. If that's the case you can't run it...
I also saw this in your error log:
fatal error: ffi.h: No such file or directory
Which can be solved by installing this package: libffi-dev
Command
sudo apt-get install libffi-dev
What OS version are you using?
Android
It is not recommended to run Btcbf on Android. To install the requirements, it is necessary to have cryptography libraries installed. On Android cryptography libs need to be compiled. It takes a long time and effort.
blink@localhost:/storage/emulated/0/Download/Btcbf-main$ ls Btcbf.py _config.yml foundkey.txt README.md address.txt requirements.txt blink@localhost:/storage/emulated/0/Download/Btcbf-main$ python3 Btcbf.py Traceback (most recent call last): File "/sdcard/Download/Btcbf-main/Btcbf.py", line 3, in
from bit.crypto import ECPrivateKey ImportError: cannot import name 'ECPrivateKey' from 'bit.crypto' (/home/blink/.local/lib/python3.9/site-packages/bit/crypto.py)
blink@localhost:/storage/emulated/0/Download/Btcbf-main$ python2 Btcbf.py Traceback (most recent call last):
File "Btcbf.py", line 3, in
from bit.crypto import ECPrivateKey
ImportError: No module named bit.crypto
I got the same error even after changing from Python 3 to Python 2