Erro na Instalação do HA em tv box

Pessoal, boa tarde. Estou começando a conhecer o HA.

Estou tentando fazer uma instalação, e sempre recebo um erro, me perdoem se colocar da forma errada.

Vi que no forum internacional tem pessoas com o mesmo erro.

Downloading atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl (7.1 kB)
Collecting orjson==3.7.5
  Using cached orjson-3.7.5.tar.gz (640 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [45 lines of output]
  Collecting maturin<0.13,>=0.12.19
    Using cached maturin-0.12.20.tar.gz (156 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'done'
  Collecting tomli>=1.1.0
    Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
  Building wheels for collected packages: maturin
    Building wheel for maturin (pyproject.toml): started
    Building wheel for maturin (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error

    × Building wheel for maturin (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [21 lines of output]
        running bdist_wheel
        running build
        running build_py
        creating build
        creating build/lib.linux-armv7l-3.10
        creating build/lib.linux-armv7l-3.10/maturin
        copying maturin/__init__.py -> build/lib.linux-armv7l-3.10/maturin
        copying maturin/import_hook.py -> build/lib.linux-armv7l-3.10/maturin
        running build_ext
        running build_rust
        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:

            pip install --upgrade pip

        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.
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for maturin
  Failed to build maturin
  ERROR: Could not build wheels for maturin, which is required to install pyproject.toml-based projects
  [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Qual linux? Qual distro? Ta instalando como? Seguindo qual tutorial? Qual hardware?
Sem as informações fica difícil ajudar!

Android Box

Seguindo esse tutorial

Achou o seu problema!
O Home Assistant não tem suporte oficial em tvs box. O hardware de tv box é simples d+, o mínimo de hardware recomendado é um Raspberry Pi 4 com 4gb de ram.
Hoje existem mini pcs muito + potentes que tvs box por bons preços!

Mas o erro em questão não é por causa da TV Box, é na instalação de uma dependência do pacote PIP.

É por causa da tv box sim, a arquitetura dela não foi feita pra ter esse tipo de instalação. É um Arch/Armbian misturado com Debian.
Desiste disso, conselho de amigo, só vai te dar dores de cabeça, tenho vários colegas que chegaram a usar o HA em tv box, tiveram dores de cabeça, migraram pra Rasp 4, tbm tiveram dores de cabeça e hoje usam o HA em mini pc com zero problemas.
Acho que como admin daqui e usuário do HA a + de 2 anos já vi muita coisa e digo que não vale o estresse, vai acabar gastando dinheiro pra no final comprar um mini pc.

5 Likes