Skip to content

uv wheel not found on non-x86_64 architectures (e.g. aarch64 Raspberry Pi) #42

@cdbrendel

Description

@cdbrendel

The https://wheels.home-assistant.io/musllinux-index (set by the official HASS Docker image as an extra-index-url) currently does not provide an any architecture version of uv, resulting in uv pip install failing on non-x86_64-systems (e.g. aarch64) here:

uv --version && su "$USER" \
-c "uv pip freeze --system|grep ^uv=|xargs uv pip install"

uv by default will abort if the first found match for a package in its list of indexes is not compatible. The HASS index is prioritized higher than the default PyPI index, and resolution fails for non-x86_64 systems, although a matching uv is found on PyPI.

I'm not knowledgeable enough about the HASS build ecosystem to know whether the HASS project should be providing this wheel on its Python package index, or if it has only just recently begun providing a wheel for uv altogether, preempting the PyPI version that had been found before.

For now, a fix is to add --index-strategy unsafe-best-match or explicitly specify the PyPI index with --index https://pypi.org/simple. Even if HASS does eventually provide an architecture-agnostic wheel for uv, maybe this change should be made regardless to reduce dependence on the HASS Python package index?

See also the discussion at https://community.home-assistant.io/t/cannot-run-ha-via-docker-on-an-rpi/957783

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions