Skip to content

Installing homeassistant in FreebSD 13.2 #64

@tehfink

Description

@tehfink

Thanks for keeping this plugin alive!

As of 2023-12-04, Following the directions for 13.2 here:
https://github.com/tprelog/iocage-homeassistant/wiki/autostart-and-rc-service#starting-the-service

Got a few errors on service homeassistant start :

  1. webrtc-noise-gain
2023-12-04 04:24:39.022 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package webrtc-noise-gain==1.2.3: error: subprocess-exited-with-error
…
      ValueError: Unsupported system: freebsd
…

Looks like they're aware of it: rhasspy/webrtc-noise-gain#6 (comment)

To fix:

pkg install -y git-lite
/usr/local/share/homeassistant/bin/pip install git+https://github.com/rhasspy/webrtc-noise-gain.git
  1. ninja (required by PyTurboJPEG)
  × Building wheel for ninja (pyproject.toml) did not run successfully.
…
          self.cmake_version = get_cmake_version(self.cmake_executable)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-ko3oubqz/overlay/lib/python3.11/site-packages/skbuild/cmaker.py", line 105, in get_cmake_version
          raise SKBuildError(msg) from err
      
      Problem with the CMake installation, aborting build. CMake executable is cmake
…

To fix:

pkg install -y cmake
/usr/local/share/homeassistant/bin/pip install ninja
  1. PyAV
Unable to install package ha-av==10.1.1: error: subprocess-exited-with-error
…
      pkg-config is required for building PyAV

To fix:

pkg install pkgconf
/usr/local/share/homeassistant/bin/pip install ha-av==10.1.1
  1. Numpy 1.26.0
2023-12-04 05:54:08.936 ERROR (MainThread) [homeassistant.setup] Setup failed for stream: Requirements for stream not found: ['numpy==1.26.0'].

Looks like they're aware of it: numpy/numpy#24873 (comment)

To fix:

cd /usr/local/share/homeassistant/
git clone https://github.com/numpy/numpy.git numpy-git
cd numpy-git
git checkout v1.26.0
git cherry-pick 040ed2d
git submodule update --init
cd ..
/usr/local/share/homeassistant/bin/pip install numpy-git/
  1. Finally & hopefully without errors: service homeassistant start

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