Closed saishandilya closed 5 years ago
I ran into the same issue.
This might help: https://github.com/teamdfir/sift/issues/224
I installed a few other packages as well so I'm not sure what the true fix was. When I have time, I'll run through another clean install and give it another go.
I think this will do it. sudo pip uninstall m2crypto sudo apt install python-m2crypto sudo apt install python3-pip --reinstall sudo pip install dpapick sudo sift install - should then work, at least that's what I just did on a 2nd VM that was in a borked state.
@saltydog4n6
Thanks for the help.I tried integrating the above set of commands as a part of my script,everything went well.It is now able to install SIFT without any failures.
hi @ekristen
I was trying to install SIFT on EC2 Ubuntu 16.04 Instance,Previously using Packages only command: sudo sift install --mode=packages-only --user=ubuntu
Initially,it was working fine..last couple of days it failed to launch due to the below errors.Could you please suggest how to fix the issue.
$ sudo sift install --mode=packages-only --user=ubuntu
Installing and configuring SaltStack properly ...
Downloading https://files.pythonhosted.org/packages/44/5a/066f5d9791d3799a0d2cd52b44cfe9caecefa7be14013ceb79953d13014b/dpapick-0.3-py2-none-any.whl Collecting pyasn1>=0.1.7 (from dpapick) Downloading https://files.pythonhosted.org/packages/7b/7c/c9386b82a25115cccf1903441bba3cbadcfae7b678a20167347fa8ded34c/pyasn1-0.4.5-py2.py3-none-any.whl (73kB) Collecting M2Crypto>=0.21.1 (from dpapick) Downloading https://files.pythonhosted.org/packages/52/e3/85f7ad64cd50b4c361b6533baeaa4d3919087993f24a93b34ae841a42628/M2Crypto-0.33.0.tar.gz (1.3MB) Collecting CFPropertyList (from dpapick) Downloading https://files.pythonhosted.org/packages/23/19/9b54460b5bc841a122672e7e25147f40b74320c683876a93b8c193d8b608/CFPropertyList-0.0.1.tar.gz Collecting python-registry>=1.0.4 (from dpapick) Downloading https://files.pythonhosted.org/packages/d6/19/a710a8509b4aa02b49cdf7bc992d0c03699b8a2d09b7dfee80005068b6df/python-registry-1.0.4.tar.gz Collecting typing (from M2Crypto>=0.21.1->dpapick) Downloading https://files.pythonhosted.org/packages/cc/3e/29f92b7aeda5b078c86d14f550bf85cff809042e3429ace7af6193c3bc9f/typing-3.6.6-py2-none-any.whl Collecting enum34 (from python-registry>=1.0.4->dpapick) Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl Installing collected packages: pyasn1, typing, M2Crypto, CFPropertyList, enum34, python-registry, dpapick Found existing installation: pyasn1 0.1.9 Not uninstalling pyasn1 at /usr/lib/python2.7/dist-packages, outside environment /usr Running setup.py install for M2Crypto: started Running setup.py install for M2Crypto: finished with status 'error' Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-bIiHgu/M2Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-yGfxsu-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py copying M2Crypto/RSA.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/DSA.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/BN.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/httpslib.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/AuthCookie.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/m2crypto.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/DH.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/RC4.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/Rand.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/EC.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/six.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/ftpslib.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/Err.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/threading.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/m2urllib.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/m2.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/util.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/callback.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/m2urllib2.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/Engine.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/ASN1.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/SMIME.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/X509.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/BIO.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/EVP.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/init.py -> build/lib.linux-x86_64-2.7/M2Crypto copying M2Crypto/m2xmlrpclib.py -> build/lib.linux-x86_64-2.7/M2Crypto creating build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/Connection.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/Cipher.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/Context.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/timeout.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/Session.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/Checker.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/SSLServer.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/cb.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL copying M2Crypto/SSL/init.py -> build/lib.linux-x86_64-2.7/M2Crypto/SSL running build_ext building 'M2Crypto._m2crypto' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/SWIG x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -I/tmp/pip-build-bIiHgu/M2Crypto/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-x86_64-2.7/SWIG/_m2crypto_wrap.o -Wno-deprecated-declarations -DTHREADING SWIG/_m2crypto_wrap.c:4754:0: warning: "PyUnicode_FromString" redefined
define PyUnicode_FromString(x) PyString_FromString(x)
The directory '/home/ssm-user/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-bIiHgu/M2Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-yGfxsu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-bIiHgu/M2Crypto/ You are using pip version 8.1.1, however version 19.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.