Git Product home page Git Product logo

Comments (3)

skoold2003 avatar skoold2003 commented on June 20, 2024

Same problem, even after installing Rust..

from hap-python.

JKoss2 avatar JKoss2 commented on June 20, 2024

I'm getting the same issue. I installed cryptography manually to install the twilio library and that worked fine (initially, the twilio install threw the same cryptography error, now it doesn't). In fact, when installing Hap-python[QRCode], just like 16 lines above "Collecting cryptography", which causes the error, it says "Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (from HAP-python[QRCode]) (3.3.2)".
I don't understand why it's trying to install it again if the requirement is already satisfied.
And I do not want to manually build using rust.

One weird thing I noticed, in the details of the error it says "n/a" for pip. My pip version is:
pip 22.3.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)

System Info from error:
Python: 3.9.2
platform: Linux-5.15.76-v7+-armv7l-with-glibc2.31
pip: n/a
setuptools: 65.6.3
setuptools_rust: 1.5.2
rustc: n/a

EDIT:
Disclaimer: I don't know 100% of what I'm talking about, so take it with a grain of salt.
I noticed that this issue is caused by "piwheels". The link below shows that the build for 38.0.3 failed. I think this means there is no precompiled "wheel"(?) we can use to install. I manually installed 38.0.1 with pip install cryptography==38.0.1 and HAP-python was able to install successfully. I'm assuming HAP-python must have a requirement for cryptography to be greater than 3.4.6 even though the requirements.txt doesn't specify a version.
https://www.piwheels.org/project/cryptography/

from hap-python.

Pythonaire avatar Pythonaire commented on June 20, 2024

Try to install on a clean system, but it hangs with" Building wheel for cryptography (pyproject.toml) ... /" and CPU = 100%
Following the instructions to update pip didn't help. Renew the system again, the install routine claims it need rust ..
python version is 3.9

reinstall older version works for me: pip install pip3 install --upgrade HAP-python[QRCode]==4.4

from hap-python.

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.