MITRECND / chopshop

Protocol Analysis/Decoder Framework
https://chopshop.readthedocs.org/
489 stars 112 forks source link

error: Setup script exited with error: command 'swig' failed with exit status 1 #55

Open affvei opened 9 years ago

affvei commented 9 years ago

I have M2Crypt installed. What it can be?

Running M2Crypto-0.22.6rc3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-z9HINK/M2Crypto-0.22.6rc3/egg-dist-tmp-MEQq9Q
warning: manifest_maker: MANIFEST.in, line 5: 'recursive-include' expects <dir> <pattern1> <pattern2> ...

warning: manifest_maker: MANIFEST.in, line 6: 'recursive-include' expects <dir> <pattern1> <pattern2> ...

warning: manifest_maker: MANIFEST.in, line 7: 'recursive-include' expects <dir> <pattern1> <pattern2> ...

warning: no files found matching 'LICENSE'
warning: no files found matching 'fedora-setup.sh'
warning: no previously-included files found matching 'M2Crypto/_m2crypto.py'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: Setup script exited with error: command 'swig' failed with exit status 1
wxsBSD commented 9 years ago

This is a problem installing m2crypto, and from the looks of it on 10.11. There isn't much we can do to help you.

rdobryanskyy commented 8 years ago

I have the same:

UserMBP:aaa-web user$ env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" SWIG_FEATURES="-cpperraswarn -includeall -I$(brew --prefix openssl)/include" pip install M2Crypto==0.21.1 Requirement already satisfied (use --upgrade to upgrade): M2Crypto==0.21.1 in /Library/Python/2.7/site-packages UserMBP:aaa-web user$ bin/buildout Develop: '/Users/user/PycharmProjects/aaa/aaa-web/webapp' Updating mysql. Updating mysql-python. Installing celery. Not found: /Users/user/PycharmProjects/ncc/AaaWebPackages/dist/M2Crypto/ Not found: /Users/user/PycharmProjects/ncc/AaaWebPackages/dist/M2Crypto/ Getting distribution for 'M2Crypto==0.21.1'. SWIG/_m2crypto.i:31: Error: Unable to find 'openssl/opensslv.h' SWIG/_m2crypto.i:45: Error: Unable to find 'openssl/safestack.h' SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h' SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h' error: Setup script exited with error: command 'swig' failed with exit status 1 An error occurred when trying to install M2Crypto 0.21.1. Look above this message for any errors that were output by easy_install. While: Installing celery. Getting distribution for 'M2Crypto==0.21.1'. Error: Couldn't install: M2Crypto 0.21.1 UserMBP:aaa-web user$

Mraoul commented 8 years ago

This is a bug in m2crypto (see https://gitlab.com/m2crypto/m2crypto/issues/69). The easiest work around is to use the python-m2crypto package on ubuntu/debian until the pypi version is fixed. The docker build is broken because of this, currently working on fixing it.