[Tutor] pip install M2crypto
Juanald Reagan
jon.engle at gmail.com
Tue Apr 28 04:14:06 CEST 2015
Good Evening,
I am trying to install the M2crypto package via pip and receive an error.
Python version is 2.7.4, any ideas on how to fix the SWIG error?
Jon$ sudo -H pip install M2crypto
/Library/Python/2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79:
InsecurePlatformWarning: A true SSLContext object is not available. This
prevents urllib3 from configuring SSL appropriately and may cause certain
SSL connections to fail. For more information, see
https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning
.
InsecurePlatformWarning
Collecting M2crypto
/Library/Python/2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79:
InsecurePlatformWarning: A true SSLContext object is not available. This
prevents urllib3 from configuring SSL appropriately and may cause certain
SSL connections to fail. For more information, see
https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning
.
InsecurePlatformWarning
Downloading M2Crypto-0.22.3.tar.gz (74kB)
100% |████████████████████████████████| 77kB 784kB/s
Installing collected packages: M2crypto
Running setup.py install for M2crypto
Complete output from command /usr/bin/python -c "import setuptools,
tokenize;__file__='/private/tmp/pip-build-covxwD/M2crypto/setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-NWsSZ5-record/install-record.txt
--single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.10-intel-2.7
creating build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/__init__.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/ASN1.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/AuthCookie.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/BIO.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/BN.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/callback.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/DH.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/DSA.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/EC.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/Engine.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/Err.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/EVP.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/ftpslib.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/httpslib.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/m2.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/m2urllib.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/m2urllib2.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/m2xmlrpclib.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/Rand.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/RC4.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/RSA.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/SMIME.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/threading.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/util.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
copying M2Crypto/X509.py -> build/lib.macosx-10.10-intel-2.7/M2Crypto
creating build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/__init__.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/cb.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Checker.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Cipher.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Connection.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Context.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Session.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/ssl_dispatcher.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/SSLServer.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/timeout.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/TwistedProtocolWrapper.py ->
build/lib.macosx-10.10-intel-2.7/M2Crypto/SSL
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-I/usr/include -I/usr/include/openssl -includeall -modern -o
SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
unable to execute swig: No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools,
tokenize;__file__='/private/tmp/pip-build-covxwD/M2crypto/setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-NWsSZ5-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/private/tmp/pip-build-covxwD/M2crypto
--
Cheers,
Jon
More information about the Tutor
mailing list