Home Assistant - Unable to Unable to install package pyspeex-noise==1.0.2 and other errors

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | 9.16.3
  • Distro version | bookworm
  • Kernel version | 6.12.34
  • Architecture | arm64
  • SBC model | RPI4
  • Power supply used | 5v 1a
  • SD card used | SanDisk ultra

Additional Information (if applicable)

  • Software title | Home Assistant
  • Was the software title installed freshly or updated/migrated?: Freshly
  • Can this issue be replicated on a fresh installation of DietPi? Yes
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  • All required HA components should start without issues

Actual behaviour

  • Notifications and errors for
  • assist_pipeline
  • cloud
  • mobile_app
  • default_config
  • bluetooth_adapters

Extra details

  • I tried to install HA on debain trixie - same issues. I also used my Odroid C2 with trixie installed - same results

Here is a partial log file


2025-09-11 14:56:20.095 WARNING (SyncWorker_0) \[homeassistant.loader\] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-09-11 14:56:24.170 ERROR (MainThread) \[haffmpeg.core\] FFmpeg fails \[Errno 2\] No such file or directory: ‘ffmpeg’
Traceback (most recent call last):
File “/home/homeassistant/.pyenv/versions/3.13.7/lib/python3.13/site-packages/haffmpeg/core.py”, line 130, in open
self.\_proc = await asyncio.create_subprocess_exec(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
…<6 lines>…
)
^
File “/home/homeassistant/.pyenv/versions/3.13.7/lib/python3.13/asyncio/subprocess.py”, line 224, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
…<3 lines>…
stderr=stderr, \*\*kwds)
^^^^^^^^^^^^^^^^^^^^^^
File “/home/homeassistant/.pyenv/versions/3.13.7/lib/python3.13/asyncio/base_events.py”, line 1802, in subprocess_exec
transport = await self.\_make_subprocess_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
protocol, popen_args, False, stdin, stdout, stderr,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bufsize, \*\*kwargs)
^^^^^^^^^^^^^^^^^^
File “/home/homeassistant/.pyenv/versions/3.13.7/lib/python3.13/asyncio/unix_events.py”, line 213, in \_make_subprocess_transport
transp = \_UnixSubprocessTransport(self, protocol, args, shell,
stdin, stdout, stderr, bufsize,
waiter=waiter, extra=extra,
\*\*kwargs)
File “/home/homeassistant/.pyenv/versions/3.13.7/lib/python3.13/asyncio/base_subprocess.py”, line 39, in **init**
self.\_start(args=args, shell=shell, stdin=stdin, stdout=stdout,
\~\~\~\~\~\~\~\~\~\~\~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
stderr=stderr, bufsize=bufsize, \*\*kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/homeassistant/.pyenv/versions/3.13.7/lib/python3.13/asyncio/unix_events.py”, line 855, in \_start
self.\_proc = subprocess.Popen(
\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^
args, shell=shell, stdin=stdin, stdout=stdout, stderr=stderr,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
universal_newlines=False, bufsize=bufsize, \*\*kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/homeassistant/.pyenv/versions/3.13.7/lib/python3.13/subprocess.py”, line 1039, in **init**
self.\_execute_child(args, executable, preexec_fn, close_fds,
\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pass_fds, cwd, env,
^^^^^^^^^^^^^^^^^^^
…<5 lines>…
gid, gids, uid, umask,
^^^^^^^^^^^^^^^^^^^^^^
start_new_session, process_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/homeassistant/.pyenv/versions/3.13.7/lib/python3.13/subprocess.py”, line 1972, in \_execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: \[Errno 2\] No such file or directory: ‘ffmpeg’
2025-09-11 14:56:24.203 WARNING (MainThread) \[haffmpeg.tools\] Error starting FFmpeg.
2025-09-11 14:56:29.804 ERROR (SyncWorker_5) \[homeassistant.util.package\] Unable to install package pymicro-vad==1.0.1: × Failed to build `pymicro-vad==1.0.1`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)

  [stdout]
  running bdist_wheel
  running build
  running build_py
  copying pymicro_vad/__init__.py ->
  build/lib.linux-aarch64-cpython-313/pymicro_vad
  running build_ext
  building 'micro_vad_cpp' extension
  g++ -fno-strict-overflow -Wsign-compare
  -DNDEBUG -g -O3 -Wall -fPIC -DVERSION_INFO=1.0.1
  -I/home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad
  -I/home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad/kissfft
  -I/home/homeassistant/.cache/uv/builds-v0/.tmpqrdVIb/lib/python3.13/site-packages/pybind11/include
  -I/home/homeassistant/.cache/uv/builds-v0/.tmpqrdVIb/include
  -I/home/homeassistant/.pyenv/versions/3.13.7/include/python3.13 -c
  /home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad/kissfft/kiss_fft.cc
  -o
  build/temp.linux-aarch64-cpython-313/home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad/kissfft/kiss_fft.o
  -fvisibility=hidden -g0 -std=c++17 -DFIXED_POINT=16

  [stderr]
  /home/homeassistant/.cache/uv/builds-v0/.tmpqrdVIb/lib/python3.13/site-packages/setuptools/dist.py:759:
  SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

  
  ********************************************************************************
          Please consider removing the following classifiers in favor of a
  SPDX license expression:

          License :: OSI Approved :: Apache Software License

          See
  https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
  for details.
  
  ********************************************************************************

  !!
    self._finalize_license_expression()
  error: command 'g++' failed: No such file or directory

  hint: This usually indicates a problem with the package or the build
  environment.

2025-09-11 14:56:32.718 ERROR (SyncWorker_5) \[homeassistant.util.package\] Unable to install package pymicro-vad==1.0.1: × Failed to build `pymicro-vad==1.0.1`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)
  [stdout]
  running bdist_wheel
  running build
  running build_py
  copying pymicro_vad/__init__.py ->
  build/lib.linux-aarch64-cpython-313/pymicro_vad
  running build_ext
  building 'micro_vad_cpp' extension
  g++ -fno-strict-overflow -Wsign-compare
  -DNDEBUG -g -O3 -Wall -fPIC -DVERSION_INFO=1.0.1
  -I/home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad
  -I/home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad/kissfft
  -I/home/homeassistant/.cache/uv/builds-v0/.tmpReBXI2/lib/python3.13/site-packages/pybind11/include
  -I/home/homeassistant/.cache/uv/builds-v0/.tmpReBXI2/include
  -I/home/homeassistant/.pyenv/versions/3.13.7/include/python3.13 -c
  /home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad/kissfft/kiss_fft.cc
  -o
  build/temp.linux-aarch64-cpython-313/home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad/kissfft/kiss_fft.o
  -fvisibility=hidden -g0 -std=c++17 -DFIXED_POINT=16

  [stderr]
  /home/homeassistant/.cache/uv/builds-v0/.tmpReBXI2/lib/python3.13/site-packages/setuptools/dist.py:759:
  SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

  
  ********************************************************************************
          Please consider removing the following classifiers in favor of a
  SPDX license expression:

          License :: OSI Approved :: Apache Software License

          See
  https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
  for details.
  
  ********************************************************************************

  !!
    self._finalize_license_expression()
  error: command 'g++' failed: No such file or directory

  hint: This usually indicates a problem with the package or the build
  environment.

2025-09-11 14:56:35.652 ERROR (SyncWorker_5) \[homeassistant.util.package\] Unable to install package pymicro-vad==1.0.1: × Failed to build `pymicro-vad==1.0.1`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)

  [stdout]
  running bdist_wheel
  running build
  running build_py
  copying pymicro_vad/__init__.py ->
  build/lib.linux-aarch64-cpython-313/pymicro_vad
  running build_ext
  building 'micro_vad_cpp' extension
  g++ -fno-strict-overflow -Wsign-compare
  -DNDEBUG -g -O3 -Wall -fPIC -DVERSION_INFO=1.0.1
  -I/home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad
  -I/home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad/kissfft
  -I/home/homeassistant/.cache/uv/builds-v0/.tmpKD6Ie1/lib/python3.13/site-packages/pybind11/include
  -I/home/homeassistant/.cache/uv/builds-v0/.tmpKD6Ie1/include
  -I/home/homeassistant/.pyenv/versions/3.13.7/include/python3.13 -c
  /home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad/kissfft/kiss_fft.cc
  -o
  build/temp.linux-aarch64-cpython-313/home/homeassistant/.cache/uv/sdists-v9/pypi/pymicro-vad/1.0.1/gv7yBstZoPWy1kop6puUj/src/micro_vad/kissfft/kiss_fft.o
  -fvisibility=hidden -g0 -std=c++17 -DFIXED_POINT=16

  [stderr]
  /home/homeassistant/.cache/uv/builds-v0/.tmpKD6Ie1/lib/python3.13/site-packages/setuptools/dist.py:759:
  SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

Found the root cause. G++ was not installed on a clean dietpi installation….

yes correct, we don’t have g++ or c++ installed by default.

Hi Joulinar, thanks for responding! During HA install pre-check, it would be great to validate that dependency as well. Or, come back with an error message during install, if that is an option.

this is not that easy as it sounds like. Each HA install is different as it depends in integrations HA is pulling. This depends on items HA is detecting on your home network. Next, this is a pure python error message, outside our script.

Got it. I am happy I fgured it out.

Hmm, I wonder how the voice assistant component became a mandatory part of HA first start setup. This happened even retrospectively for HA 2025.1.4 on Bullseye, so must have happened somehow with a new release of a non-core component which is compatible, hence installed on HA 2025.1.4 as well.

However, fix is here: dietpi-software: Home Assistant: add missing dependency · MichaIng/DietPi@638b5ef · GitHub

pyspeex-noise belongs to pymicro-vad, sort of, same developers, same version strings.