Skip to content

Instantly share code, notes, and snippets.

@neruthes
Created September 7, 2014 16:52
Show Gist options
  • Select an option

  • Save neruthes/d31f8f56beca7018d534 to your computer and use it in GitHub Desktop.

Select an option

Save neruthes/d31f8f56beca7018d534 to your computer and use it in GitHub Desktop.
Failed installing M2Crypto on OS X Mavericks
Last login: Sun Sep 7 09:23:33 on ttys002
Arcturus:~ JoyNeop$ pip install M2Crypto
Downloading/unpacking M2Crypto
Downloading M2Crypto-0.22.3.tar.gz (74kB): 74kB downloaded
Running setup.py (path:/private/var/folders/rn/4pwwhb8n7zd71n7xxbft_yz80000gn/T/pip_build_JoyNeop/M2Crypto/setup.py) egg_info for package M2Crypto
Installing collected packages: M2Crypto
Running setup.py install for M2Crypto
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
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/rn/4pwwhb8n7zd71n7xxbft_yz80000gn/T/pip_build_JoyNeop/M2Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/rn/4pwwhb8n7zd71n7xxbft_yz80000gn/T/pip-53PV4d-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/__init__.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/ASN1.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/AuthCookie.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/BIO.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/BN.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/callback.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/DH.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/DSA.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/EC.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/Engine.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/Err.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/EVP.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/ftpslib.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/httpslib.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/m2.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/m2urllib.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/m2urllib2.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/m2xmlrpclib.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/Rand.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/RC4.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/RSA.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/SMIME.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/threading.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/util.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
copying M2Crypto/X509.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto
creating build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/__init__.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/cb.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Checker.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Cipher.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Connection.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Context.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Session.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/SSLServer.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/timeout.py -> build/lib.macosx-10.9-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.macosx-10.9-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
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/rn/4pwwhb8n7zd71n7xxbft_yz80000gn/T/pip_build_JoyNeop/M2Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/rn/4pwwhb8n7zd71n7xxbft_yz80000gn/T/pip-53PV4d-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/rn/4pwwhb8n7zd71n7xxbft_yz80000gn/T/pip_build_JoyNeop/M2Crypto
Storing debug log for failure in /Users/JoyNeop/Library/Logs/pip.log
Arcturus:~ JoyNeop$
@kevinlondon

Copy link
Copy Markdown

Did you figure this out? I just hit this too.

@sachithkadamba

Copy link
Copy Markdown

Even I got the same problem. Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment