Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to work on M1 MacBook Air #4

Open
mwitts99 opened this issue May 27, 2022 · 1 comment
Open

Unable to work on M1 MacBook Air #4

mwitts99 opened this issue May 27, 2022 · 1 comment

Comments

@mwitts99
Copy link

am not able to get this to work on an M1 MacBook Air. Any assistance would be appreciated! I pasted the what happens when I try to install bitcoinlib. I attempted some solutions on Google but nothing is working!

test@tests-MacBook-Air ~ % pip3 install bitcoinlib
Defaulting to user installation because normal site-packages is not writeable
Collecting bitcoinlib
Using cached bitcoinlib-0.6.4-py3-none-any.whl (327 kB)
Collecting numpy>=1.21.0
Using cached numpy-1.22.4-cp38-cp38-macosx_11_0_arm64.whl (12.7 MB)
Collecting pyaes==1.6.1
Using cached pyaes-1.6.1-py3-none-any.whl
Collecting SQLAlchemy>=1.4.28
Using cached SQLAlchemy-1.4.36.tar.gz (8.1 MB)
Preparing metadata (setup.py) ... done
Collecting scrypt>=0.8.19
Using cached scrypt-0.8.20.tar.gz (55 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting requests>=2.25.0
Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Requirement already satisfied: fastecdsa>=2.2.3 in ./Library/Python/3.8/lib/python/site-packages (from bitcoinlib) (2.2.3)
Collecting charset-normalizer~=2.0.0
Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5
Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.5.18.1-py3-none-any.whl (155 kB)
Building wheels for collected packages: scrypt, SQLAlchemy
Building wheel for scrypt (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for scrypt (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [42 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-arm64-3.8
creating build/lib.macosx-10.14.6-arm64-3.8/scrypt
copying scrypt/init.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt
copying scrypt/scrypt.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt
creating build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/init.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/test_scrypt_py2x.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/test_scrypt_py3x.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/test_scrypt_c_module.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/test_scrypt.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/ciphertexts.csv -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/hashvectors.csv -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
running build_ext
building '_scrypt' extension
creating build/temp.macosx-10.14.6-arm64-3.8
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/crypto
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/scryptenc
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/util
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva/alg
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva/crypto
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva/util
creating build/temp.macosx-10.14.6-arm64-3.8/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/crypto/crypto_scrypt.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/crypto/crypto_scrypt.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/crypto/crypto_scrypt_smix.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/crypto/crypto_scrypt_smix.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/crypto/crypto_scrypt_smix_sse2.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/crypto/crypto_scrypt_smix_sse2.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/scryptenc/scryptenc.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/scryptenc/scryptenc.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/scryptenc/scryptenc_cpuperf.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/scryptenc/scryptenc_cpuperf.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/util/memlimit.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/util/memlimit.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/libcperciva/alg/sha256.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva/alg/sha256.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/libcperciva/crypto/crypto_aes.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva/crypto/crypto_aes.o
scrypt-1.2.1/libcperciva/crypto/crypto_aes.c:6:10: fatal error: 'openssl/aes.h' file not found
#include <openssl/aes.h>
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for scrypt
Building wheel for SQLAlchemy (setup.py) ... done
Created wheel for SQLAlchemy: filename=SQLAlchemy-1.4.36-cp38-cp38-macosx_10_14_6_arm64.whl size=1555775 sha256=bbfd64e42438ce7dc937547db1cb20c272b6e3d700a57fa516b837445a5b3522
Stored in directory: /Users/test/Library/Caches/pip/wheels/47/b7/10/080836da0d570aa79c319942a3244023109239a4fba388a5c3
Successfully built SQLAlchemy
Failed to build scrypt
ERROR: Could not build wheels for scrypt, which is required to install pyproject.toml-based projects

@mkhaled87
Copy link
Owner

mkhaled87 commented May 29, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants