Saturday, February 4, 2023
HomeBitcoinbitcoin core - Python unable to put in Bitcoinlib

bitcoin core – Python unable to put in Bitcoinlib

I attempt set up bitcoinlib python bundle and I get an error:

Gathering bitcoinlib   Utilizing cached bitcoinlib-0.6.5-py3-none-any.whl (315 kB) Requirement already glad: numpy>=1.21.0 in ./venv/lib/python3.10/site-packages (from bitcoinlib) (1.23.1) Requirement already glad: requests>=2.25.0 in ./venv/lib/python3.10/site-packages (from bitcoinlib) (2.28.1) Requirement already glad: SQLAlchemy>=1.4.28 in ./venv/lib/python3.10/site-packages (from bitcoinlib) (1.4.39) Requirement already glad: pycryptodome>=3.14.1 in ./venv/lib/python3.10/site-packages (from bitcoinlib) (3.15.0) Gathering fastecdsa>=2.2.3   Utilizing cached fastecdsa-2.2.3.tar.gz (48 kB)   Making ready metadata (setup.py) ... completed Requirement already glad: urllib3<1.27,>=1.21.1 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->bitcoinlib) (1.26.10) Requirement already glad: charset-normalizer<3,>=2 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->bitcoinlib) (2.1.0) Requirement already glad: certifi>=2017.4.17 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->bitcoinlib) (2022.6.15) Requirement already glad: idna<4,>=2.5 in ./venv/lib/python3.10/site-packages (from requests>=2.25.0->bitcoinlib) (3.3) Constructing wheels for collected packages: fastecdsa   Constructing wheel for fastecdsa (setup.py) ... error   ERROR: Command errored out with exit standing 1:    command: /Customers/ofekbenharosh/PycharmProjects/pythonProject/venv/bin/python -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-install-nf5yyqfc/fastecdsa_7d7c1187bcda423cbb18e2513ee27e01/setup.py'"'"';
__file__='"'"'/non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-install-nf5yyqfc/fastecdsa_7d7c1187bcda423cbb18e2513ee27e01/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.learn().change('"'"'rn'"'"', '"'"'n'"'"');f.shut();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-wheel-glm0yzzn
       cwd: /non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-install-nf5yyqfc/fastecdsa_7d7c1187bcda423cbb18e2513ee27e01/ Full output (49 traces):   operating bdist_wheel   operating construct   operating build_py   creating construct   creating construct/lib.macosx-10.9-universal2-cpython-310   creating construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa   copying fastecdsa/benchmark.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa   copying fastecdsa/util.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa   copying fastecdsa/__init__.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa   copying fastecdsa/keys.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa   copying fastecdsa/curve.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa   copying fastecdsa/level.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa   copying fastecdsa/ecdsa.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa   creating construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_point.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_keygen.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_nonce_generation.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_key_recovery.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_key_export_import.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_whycheproof_vectors.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/__init__.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_prehashed.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_brainpool_ecdh.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_rfc6979_ecdsa.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_whitespace_parsing.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_prime_field_curve_math.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   copying fastecdsa/checks/test_p256_ecdsa.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks   creating construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding   copying fastecdsa/encoding/pem.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding   copying fastecdsa/encoding/util.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding   copying fastecdsa/encoding/__init__.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding   copying fastecdsa/encoding/sec1.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding   copying fastecdsa/encoding/der.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding   copying fastecdsa/encoding/asn1.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding   creating construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks/encoding  copying fastecdsa/checks/encoding/test_sec1.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks/encoding  copying fastecdsa/checks/encoding/__init__.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks/encoding  copying fastecdsa/checks/encoding/test_der.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks/encoding  operating build_ext   constructing 'fastecdsa.curvemath' extension   creating construct/temp.macosx-10.9-universal2-cpython-310   creating construct/temp.macosx-10.9-universal2-cpython-310/src   clang
-Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -stdlib=libc++ -Isrc/ -I/Customers/ofekbenharosh/PycharmProjects/pythonProject/venv/embody -I/Library/Frameworks/Python.framework/Variations/3.10/embody/python3.10
-c src/curve.c -o construct/temp.macosx-10.9-universal2-cpython-310/src/curve.o -O2   In file included from src/curve.c:1:   src/curve.h:4:10: deadly error: 'gmp.h' file not discovered   #embody "gmp.h"
           ^~~~~~~   1 error generated.   error: command '/usr/bin/clang' failed with exit code 1  
----------------------------------------   ERROR: Failed constructing wheel for fastecdsa   Working setup.py clear for fastecdsa Didn't construct fastecdsa Putting in collected packages: fastecdsa, bitcoinlib
    Working setup.py set up for fastecdsa ... error
    ERROR: Command errored out with exit standing 1:
     command: /Customers/ofekbenharosh/PycharmProjects/pythonProject/venv/bin/python -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-install-nf5yyqfc/fastecdsa_7d7c1187bcda423cbb18e2513ee27e01/setup.py'"'"';
__file__='"'"'/non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-install-nf5yyqfc/fastecdsa_7d7c1187bcda423cbb18e2513ee27e01/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.learn().change('"'"'rn'"'"', '"'"'n'"'"');f.shut();exec(compile(code, __file__, '"'"'exec'"'"'))' set up --record /non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-record-xuukb0iy/install-record.txt
--single-version-externally-managed --compile --install-headers /Customers/ofekbenharosh/PycharmProjects/pythonProject/venv/embody/website/python3.10/fastecdsa
         cwd: /non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-install-nf5yyqfc/fastecdsa_7d7c1187bcda423cbb18e2513ee27e01/
    Full output (51 traces):
    operating set up
    /Customers/ofekbenharosh/PycharmProjects/pythonProject/venv/lib/python3.10/site-packages/setuptools/command/set up.py:34: SetuptoolsDeprecationWarning: setup.py set up is deprecated. Use construct and pip and different standards-based instruments.
      warnings.warn(
    operating construct
    operating build_py
    creating construct
    creating construct/lib.macosx-10.9-universal2-cpython-310
    creating construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa
    copying fastecdsa/benchmark.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa
    copying fastecdsa/util.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa
    copying fastecdsa/__init__.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa
    copying fastecdsa/keys.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa
    copying fastecdsa/curve.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa
    copying fastecdsa/level.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa
    copying fastecdsa/ecdsa.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa
    creating construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_point.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_keygen.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_nonce_generation.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_key_recovery.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_key_export_import.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_whycheproof_vectors.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/__init__.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_prehashed.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_brainpool_ecdh.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_rfc6979_ecdsa.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_whitespace_parsing.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_prime_field_curve_math.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    copying fastecdsa/checks/test_p256_ecdsa.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks
    creating construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding
    copying fastecdsa/encoding/pem.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding
    copying fastecdsa/encoding/util.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding
    copying fastecdsa/encoding/__init__.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding
    copying fastecdsa/encoding/sec1.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding
    copying fastecdsa/encoding/der.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding
    copying fastecdsa/encoding/asn1.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/encoding
    creating construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks/encoding
    copying fastecdsa/checks/encoding/test_sec1.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks/encoding
    copying fastecdsa/checks/encoding/__init__.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks/encoding
    copying fastecdsa/checks/encoding/test_der.py -> construct/lib.macosx-10.9-universal2-cpython-310/fastecdsa/checks/encoding
    operating build_ext
    constructing 'fastecdsa.curvemath' extension
    creating construct/temp.macosx-10.9-universal2-cpython-310
    creating construct/temp.macosx-10.9-universal2-cpython-310/src
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -stdlib=libc++ -Isrc/
-I/Customers/ofekbenharosh/PycharmProjects/pythonProject/venv/embody -I/Library/Frameworks/Python.framework/Variations/3.10/embody/python3.10
-c src/curve.c -o construct/temp.macosx-10.9-universal2-cpython-310/src/curve.o -O2
    In file included from src/curve.c:1:
    src/curve.h:4:10: deadly error: 'gmp.h' file not discovered
    #embody "gmp.h"
             ^~~~~~~
    1 error generated.
    error: command '/usr/bin/clang' failed with exit code 1
    ---------------------------------------- ERROR: Command errored out with exit standing 1: /Customers/ofekbenharosh/PycharmProjects/pythonProject/venv/bin/python -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-install-nf5yyqfc/fastecdsa_7d7c1187bcda423cbb18e2513ee27e01/setup.py'"'"';
__file__='"'"'/non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-install-nf5yyqfc/fastecdsa_7d7c1187bcda423cbb18e2513ee27e01/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.learn().change('"'"'rn'"'"', '"'"'n'"'"');f.shut();exec(compile(code, __file__, '"'"'exec'"'"'))' set up --record /non-public/var/folders/1s/0c6cnvt947n5r6_07k__th6r0000gn/T/pip-record-xuukb0iy/install-record.txt
--single-version-externally-managed --compile --install-headers /Customers/ofekbenharosh/PycharmProjects/pythonProject/venv/embody/website/python3.10/fastecdsa Test the logs for full command output.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments