-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
Problem description
When installing homassistant, an error occurs at the uv installation stage. I don't understand how to edit it, I'm new to termux and github. numpy and maturin installed without errors. Please help me
(hass) ~ $ pip install homeassistant
Collecting homeassistant
Using cached homeassistant-2025.1.4-py3-none-any.whl.metadata (4.8 kB)
...........
Building wheels for collected packages: uv
Building wheel for uv (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for uv (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [355 lines of output]
Running `maturin pep517 build-wheel -i /data/data/com.termux/files/home/hass/bin/python3.12 --compatibility off`
📦 Including license file "/data/data/com.termux/files/usr/tmp/pip-install-vum4krmy/uv_b81f861c057340ae91469d5cbce88cc4/LICENSE-APACHE"
📦 Including license file "/data/data/com.termux/files/usr/tmp/pip-install-vum4krmy/uv_b81f861c057340ae91469d5cbce88cc4/LICENSE-MIT"
🍹 Building a mixed python/rust project
🔗 Found bin bindings
📡 Using build options bindings from pyproject.toml
.......
Compiling anstyle-parse v0.2.6
warning: a method with this name may be added to the standard library in the future
--> crates/uv-fs/src/lib.rs:513:41
|
513 | if let Err(err) = self.0.file().unlock() {
| ^^^^^^
|
= warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior!
= note: for more information, see issue #48919 <https://github.com/rust-lang/rust/issues/48919>
= help: call with fully qualified syntax `unlock(...)` to keep using the current method
= note: `#[warn(unstable_name_collisions)]` on by default
........
Compiling retry-policies v0.4.0
warning: [email protected]: c/linux.c:96:11: error: call to undeclared library function 'index' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
warning: [email protected]: 96 | mount = index(procline, ' ');
warning: [email protected]: | ^
warning: [email protected]: c/linux.c:96:11: note: include the header <strings.h> or explicitly provide a declaration for 'index'
warning: [email protected]: 1 error generated.
error: failed to run custom build command for `sys-info v0.9.1`
Caused by:
process didn't exit successfully: `/data/data/com.termux/files/usr/tmp/pip-install-vum4krmy/uv_b81f861c057340ae91469d5cbce88cc4/target/release/build/sys-info-907c20312c96851c/build-script-build` (exit status: 1)
--- stdout
OUT_DIR = Some(/data/data/com.termux/files/usr/tmp/pip-install-vum4krmy/uv_b81f861c057340ae91469d5cbce88cc4/target/release/build/sys-info-4387eab598ba1220/out)
OPT_LEVEL = Some(3)
TARGET = Some(aarch64-linux-android)
HOST = Some(aarch64-linux-android)
cargo:rerun-if-env-changed=CC_aarch64-linux-android
CC_aarch64-linux-android = None
cargo:rerun-if-env-changed=CC_aarch64_linux_android
CC_aarch64_linux_android = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
RUSTC_WRAPPER = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some(false)
cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
CFLAGS_aarch64-linux-android = None
cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
CFLAGS_aarch64_linux_android = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
CARGO_ENCODED_RUSTFLAGS = Some()
cargo:warning=c/linux.c:96:11: error: call to undeclared library function 'index' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
cargo:warning= 96 | mount = index(procline, ' ');
cargo:warning= | ^
cargo:warning=c/linux.c:96:11: note: include the header <strings.h> or explicitly provide a declaration for 'index'
cargo:warning=1 error generated.
--- stderr
error occurred in cc-rs: Command LC_ALL="C" "aarch64-linux-android-gcc" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-Wall" "-Wextra" "-o" "/data/data/com.termux/files/usr/tmp/pip-install-vum4krmy/uv_b81f861c057340ae91469d5cbce88cc4/target/release/build/sys-info-4387eab598ba1220/out/a1edd97dd51cd48d-linux.o" "-c" "c/linux.c" with args aarch64-linux-android-gcc did not execute successfully (status code exit status: 1).
warning: build failed, waiting for other jobs to finish...
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit status: 101": `env -u CARGO "cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "/data/data/com.termux/files/usr/tmp/pip-install-vum4krmy/uv_b81f861c057340ae91469d5cbce88cc4/crates/uv/Cargo.toml" "--release" "--bin" "uv" "--" "-C" "strip=symbols"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/data/data/com.termux/files/home/hass/bin/python3.12', '--compatibility', 'off'] returned non-zero exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for uv
Failed to build uv
ERROR: Failed to build installable wheels for some pyproject.toml based projects (uv)
What steps will reproduce the bug?
Installing homeassistant:
- Install F-droid
- Install Termux from F-droid
- Termux:API from F-droid
TERMUX_VERSION="0.118.0"
-
Start Termux App;
-
Insert the following commands in order:
• pkg update
• apt-get update
• pkg upgrade
pkg install python nano make rust libcrypt libffi libjpeg-turbo
• pkg install openssh
• pkg install python
• pkg install mosquitto
• pkg install nodejs
• pkg install termux-api -
Install homeassistant
python -m venv hass
source hass/bin/activate
pip install --upgrade pip
pip install wheel
export CARGO_BUILD_TARGET="$(rustc -Vv | grep "host" | awk '{print $2}')"
export CRYPTOGRAPHY_DONT_BUILD_RUST=1
pip install maturin
pip install numpy
pip install homeassistant
What is the expected behavior?
No response
System information
Termux Variables:
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=19438
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main/ stable main
Updatable packages:
All packages up to date
termux-tools version:
1.44.6
Android version:
13
Kernel build information:
Linux localhost 4.19.191-g6e5440f6a542 #1 SMP PREEMPT Thu Dec 12 13:03:47 CST 2024 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
2201117SY
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so