I have upgraded my home assistant yesterday through dietpi software. In past home assistant my home assistant cast the music file correctly. but latest version fails to do so & in logs it shows following problems.
root@wyse:/mnt/dietpi_userdata/homeassistant# systemctl status home-assistant
● home-assistant.service - Home Assistant (DietPi)
Loaded: loaded (/etc/systemd/system/home-assistant.service; enabled; preset: enabled)
Active: active (running) since Sat 2024-02-24 16:00:18 MST; 14s ago
Main PID: 26788 (hass)
Tasks: 20 (limit: 4496)
Memory: 128.4M
CPU: 13.559s
CGroup: /system.slice/home-assistant.service
└─26788 /home/homeassistant/.pyenv/versions/3.12.1/bin/python3.12 /home/homeassistant/.pyenv/versions/3.12.1/bin/hass -c /mnt/dietpi_userdata/homeassistant
Feb 24 16:00:26 wyse Home Assistant[26788]: File "/home/homeassistant/.pyenv/versions/3.12.1/lib/python3.12/concurrent/futures/thread.py", line 58, in run
Feb 24 16:00:26 wyse Home Assistant[26788]: result = self.fn(*self.args, **self.kwargs)
Feb 24 16:00:26 wyse Home Assistant[26788]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 24 16:00:26 wyse Home Assistant[26788]: File "/home/homeassistant/.pyenv/versions/3.12.1/lib/python3.12/subprocess.py", line 1026, in __init__
Feb 24 16:00:26 wyse Home Assistant[26788]: self._execute_child(args, executable, preexec_fn, close_fds,
Feb 24 16:00:26 wyse Home Assistant[26788]: File "/home/homeassistant/.pyenv/versions/3.12.1/lib/python3.12/subprocess.py", line 1950, in _execute_child
Feb 24 16:00:26 wyse Home Assistant[26788]: raise child_exception_type(errno_num, err_msg, err_filename)
Feb 24 16:00:26 wyse Home Assistant[26788]: FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
Feb 24 16:00:26 wyse Home Assistant[26788]: 2024-02-24 16:00:26.900 WARNING (MainThread) [haffmpeg.tools] Error starting FFmpeg.
Feb 24 16:00:29 wyse Home Assistant[26788]: 2024-02-24 16:00:29.056 ERROR (MainThread) [homeassistant.components.script] Script with alias 'nitnem' failed to setup actions and has been disabled: Unknown device '20d8248d336f60348ea6df34c53a5337'
Thanks for giving me hint. i have checked " which ffmpeg" command which give me blank. then i install the ffmpeg through dietpi software & installation complete. then again try to integration google cast now system struck at
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for webrtc-noise-gain
ERROR: Could not build wheels for webrtc-noise-gain, which is required to install pyproject.toml-based projects
2024-02-25 08:50:27.733 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package webrtc-noise-gain==1.2.3: error: subprocess-exited-with-error
× Building wheel for webrtc-noise-gain (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [77 lines of output]
So it fails because it can not built webrtc-noise-gain, which is needed for the google cast.
Some interesting parts:
ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package webrtc-noise-gain==1.2.3: error: subprocess-exited-with-error
RuntimeError: Unsupported compiler -- at least C++11 support is needed!
I’m not so familiar with this topic, but do you have gcc installed?