Open WoozieJuank opened 2 years ago
Having the same issue. Let me know if you found a fix!
Try pkg install rust
See: https://github.com/pyca/cryptography/issues/6679 https://wiki.termux.com/wiki/Python
The key bit:
32-bit (I believe this applies to the Nexus 7 and Nexus 6, the latter of which I'm using):
export CARGO_BUILD_TARGET=armv7-linux-androideabi
also check:
export CARGO_BUILD_TARGET=arm-linux-androideabi
64-bit:
export CARGO_BUILD_TARGET=aarch64-linux-android
Here's exactly what I ran that worked for my Nexus 6:
pkg install rust
export CARGO_BUILD_TARGET=armv7-linux-androideabi && pip install cryptography
pip install homeassistant
That ☝🏻 and pkg install binutils
did it for me: https://github.com/termux/termux-packages/issues/11177#issuecomment-1176975307
hello, I can't install HASS, after entering the command "pip install homeassistant", I can't install HASS. I get the following error with the package "Cryptographic".
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
This package requires Rust >=1.41.0.
ERROR: Failed building wheel for cryptography
Failed to build cryptography ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly WARNING: You are using pip version 21.2.4; however, version 22.0.3 is available. You should consider upgrading via the '/data/data/com.termux/files/home/hass/bin/python -m pip install --upgrade pip' command.