Giter VIP home page Giter VIP logo

Comments (6)

BitbeyHub avatar BitbeyHub commented on June 8, 2024 6

For all these days struggling for this issue, where M2Crypto is really hard to compile, I have found another way to install python-adb based on the helpful commit 4b555e6 by @bif-g .

After merged ,the source codes in github for now differ slightly from the PyPi package mainly on the M2Crypto changing parts.

  1. So we first install the github version by cloning to the local and execute python setup.py install or directly use the VCS method of pip with pip install -e git+https://github.com/google/python-adb.git#egg=adb. This will install cryptography or rsa as dependency instead of the erroneous M2Crypto.

  2. This will install a python-adb package which could be listed by pip list but conda list, that unfortunately I used to mistake as installation unsuccess, causing a lot of backward trouble for poor me.

  3. For others, the installation could end here. But for me, the bugs continue. I then come across the error of libusb issue, which indicate that I don't have the .dll file in the right path. So I download the zip from the original url and extract the .dll file through libusb-1.0.22\MinGW64\dll\libusb-1.0.dll. Then copy it to C:\Windows\System32 according to the README instruction in the zip file. This should end up bugless.

Change the path to use relative to your own condition.
May the issus be closed by my experience.

from python-adb.

RamseyK avatar RamseyK commented on June 8, 2024 1

Install pycryptodome, which has precompiled wheels, and that’ll work as a replacement for M2Crypto

from python-adb.

shungabubus avatar shungabubus commented on June 8, 2024

I had the same issue on Ubuntu.

pip install --no-binary :all: M2Crypto installed the dependency, after that installing adb worked fine.

from python-adb.

BitbeyHub avatar BitbeyHub commented on June 8, 2024

Mine the same error unsolved

from python-adb.

salvorapi avatar salvorapi commented on June 8, 2024

Same error

from python-adb.

BitbeyHub avatar BitbeyHub commented on June 8, 2024

when would someone handsome update the pypi source with a non-M2Crypto version?

from python-adb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.