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

Problems installing through pip (ubunutu) #154

Open

Description

@wouterverduin

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?

Activity

  1. gilazov commented on May 6, 2019

    @gilazov

    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
    
  2. topherbuckley commented on May 22, 2019

    @topherbuckley

    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?

  3. penn5 commented on Jun 16, 2019

    @penn5

    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.

  4. bannsec commented on Jun 24, 2019

    @bannsec

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

  5. BitbeyHub commented on Jul 30, 2019

    @BitbeyHub

    I have the same problem.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions