Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Problems installing through pip (ubunutu) #154

Open
wouterverduin opened this issue May 1, 2019 · 5 comments
Open

Problems installing through pip (ubunutu) #154

wouterverduin opened this issue May 1, 2019 · 5 comments

Comments

@wouterverduin
Copy link

Hi all!

Was looking for software like this to controle my Nvidia Shield. After some reading found this should do the trick.

However; after attempting to install using 'pip install adb' it throws an error:

compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-iFFlkd/M2Crypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-Ahd8mj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-iFFlkd/M2Crypto/

Anyway to resolve this?

@gilazov
Copy link

gilazov commented May 6, 2019

It works for me:

$ apt-get install libssl-dev libffi-dev
$ sudo pip install openssl
$ pip install --global-option=build_ext --global-option="-I/usr/local/opt/openssl/include" m2crypto

@topherbuckley
Copy link

topherbuckley commented May 22, 2019

I also get the same errors as @wouterverduin, but also note there was another error message a few pages up the log stating "Failed building wheel for M2Crypto".

I attempted to install M2Crypto via apt-get and pip, both installed successfully, but still get the failed building wheel error when trying to install adb.

I also don't see any package named openssl as mentioned by @gilazov for python3 other than openssl-python (0.1). I tried to install that, but it failed with the following message:

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-uip3wbp7/openssl-python/setup.py", line 7, in
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
File "/usr/lib/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-uip3wbp7/openssl-python/README.md'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-uip3wbp7/openssl-python/

@gilazov were you perhaps installing using python2? Some of these dependencies may not work with python3 perhaps?

@penn5
Copy link

penn5 commented Jun 16, 2019

If you install python-rsa and build from master rather than the latest pypi release (#133) it works. M2Crypto doesn't work on Python3/Linux for me, always an error.

@bannsec
Copy link

bannsec commented Jun 24, 2019

penn5's solution worked for me. I guess you just gotta know the secret handshake to be able to install correctly.

@BitbeyHub
Copy link

I have the same problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants