Open McSlow opened 4 days ago
I can reproduce the issue on my ha instance too. It looks like an internal Home Assistent issue...I will search for a solution
What I saw is that you require some stuff which is already required in core. ( aiodns ). Perhaps then it stops pulling the rest using pip. https://developers.home-assistant.io/docs/creating_integration_manifest/#custom-integration-requirements https://github.com/home-assistant/core/blob/dev/requirements.txt
What I saw is that you require some stuff which is already required in core. ( aiodns ). Perhaps then it stops pulling the rest using pip. https://developers.home-assistant.io/docs/creating_integration_manifest/#custom-integration-requirements https://github.com/home-assistant/core/blob/dev/requirements.txt
hm, I don't have "aiodns" in my requirements ;-) only this packages: "async-lru==2.0.4", "polars==1.12.0", "aiopath==0.7.7", "aiofiles==24.1.0", "aioshutil==1.5"
I checked them already, no one of them is in the requirements.txt
Probably the issue is with some missing permissions in home assistant environment:
2024-11-18 16:33:52.517 ERROR (SyncWorker_7) [homeassistant.util.package] Unable to install package polars==1.12.0: error: Failed to prepare distributions
Caused by: Failed to download and build `polars==1.12.0`
Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)
[stdout]
Running `maturin pep517 build-wheel -i /tmp/.tmpsuZyol/builds-v0/.tmp5WEUKR/bin/python --compatibility off`
[stderr]
Traceback (most recent call last):
File "<string>", line 11, in <module>
File "/tmp/.tmpsuZyol/builds-v0/.tmp5WEUKR/lib/python3.12/site-packages/maturin/__init__.py", line 119, in build_wheel
return _build_wheel(wheel_directory, config_settings, metadata_directory)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.tmpsuZyol/builds-v0/.tmp5WEUKR/lib/python3.12/site-packages/maturin/__init__.py", line 100, in _build_wheel
result = subprocess.run(command, stdout=subprocess.PIPE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.12/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: 'maturin'
2024-11-18 16:33:58.027 ERROR (SyncWorker_7) [homeassistant.util.package] Unable to install package polars==1.12.0: error: Failed to prepare distributions
I created an issue in core github repository, let's see.
Ah sorry, don't know how i got over that aiodns package.
I just tried to install polars using pip inside the core container manually. btw: if you do a pip list there, it seems all other deps are there, e.g. aiopath is on 0.7.7.
seems that compilation struggles because of the missing cargo/rust framework:
/config # pip install polars==1.12.0
Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/
Collecting polars==1.12.0
Downloading polars-1.12.0.tar.gz (4.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.1/4.1 MB 37.2 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
Edit: just saw that maturin just takes care about that rust stuff and builds it. But it might at least be the reason why just this package fails, all the others might just be installed as usual.
the same issue on my raspberry pi (hassio), but no problem on virtual machine in docker container :(
Just tried it out on other raspberry pi server without Hass.io (only home assistant core installed) -> it works without any issues. Is your HA running on Hass.io?
Yes, hass.io.
I tested it with Docker containers (stable and dev). Both containers raised this exceptions...something is missing or wrong in containers
Hi, just tried the 1.0.0. With an up to date HA it throws the following error when starting the config flow. Perhaps just a missing dependency... (see last line of dump...)