So here's the thing.
I ran MashedPotatoes' PotatoNV on github -> (link
Then I downloaded it, ran the pip install -r requirements.txt
and then...
Building wheels for collected packages: M2Crypto
Building wheel for M2Crypto (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [60 lines of output]
running bdist_wheel
running build
running build_py
copying M2Crypto/callback.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/EVP.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/AuthCookie.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/m2.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/ftpslib.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/EC.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/httpslib.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/X509.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/util.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/RSA.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/BIO.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/DH.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/__init__.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/threading.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/Rand.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/SMIME.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/Engine.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/m2xmlrpclib.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/RC4.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/m2urllib2.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/DSA.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/six.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/m2urllib.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/BN.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/m2crypto.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/Err.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
copying M2Crypto/ASN1.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto
creating build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/cb.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/Session.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/timeout.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/__init__.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/Cipher.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/Connection.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/Context.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/SSLServer.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
copying M2Crypto/SSL/Checker.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/SSL
creating build/lib.macosx-10.9-universal2-3.9/M2Crypto/PGP
copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/PGP
copying M2Crypto/PGP/RSA.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/PGP
copying M2Crypto/PGP/constants.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/PGP
copying M2Crypto/PGP/__init__.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/PGP
copying M2Crypto/PGP/packet.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/PGP
copying M2Crypto/PGP/PublicKey.py -> build/lib.macosx-10.9-universal2-3.9/M2Crypto/PGP
running build_ext
building 'M2Crypto._m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -I/usr/include -includeall -modern -builtin -outdir /private/var/folders/d0/97f6w74523b6j1m1kwjsl87c0000gn/T/pip-install-k_lv91eq/m2crypto_1319489320b34258aaa9bf4e88d4007b/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
Deprecated command line option: -modern. Ignored, this option is now always on.
SWIG/_m2crypto.i:43: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:60: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_rc4.i:5: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command '/opt/homebrew/bin/swig' 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 M2Crypto
Running setup.py clean for M2Crypto
Failed to build M2Crypto
ERROR: Could not build wheels for M2Crypto, which is required to install pyproject.toml-based projects
(ps I can brew install adb
, but the script itself needs to pip install adb
...)
Then I googled "Error: Unable to find openssl/", then I found this link which is also on stackoverflow. Following that, I installed the M2Crypto (0.39) successfully, but I need M2Crypto (<=0.26.4). Therefore, pip install adb
is still not working... So what should I do? Thanks guys.
(ps I also tried to run that command and replaced the pip install m2crypto
to pip install adb
, which is again, not working...)