New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed: Cannot build pip dependency 'webrtc-noise-gain' required for HA's integrations #6931
Conversation
I see, pre-compiled wheels are not available for Python 3.12: https://pypi.org/project/webrtc-noise-gain/#files But, this module is not required for a HA base installation, but only for your optional integrations, isn't it? We have We should add this to our documentation 🤔. For the automatic module installation on reinstalls/updates alone, this is quite handy. |
I tried doing a fresh installation of HA in VM. The same error happens. That
Here's the complete log. Edit: Since the pre-compiled pip is not available for some architectures, then I suppose it is best to add Or... adding the instruction for workaround somewhere may suffice in exchange of smooth HA upgrade/installation. |
Got it, so it's one of these modules which are installed on initial service start, rather than in HA installation. I never understood why they do not add these to requirements.txt. The way it is now, it slips through our test, because the installation finishes, the service starts up and the web UI is accessible. |
While this solves the warnings in web UI, there is another error on service startup:
I wonder why now FFmpeg is expected while not a single integration is installed, which would use it. Same is true for Let's keep it like that for now, because FFmpeg with all its libraries is huge, about 500 MiB. |
I ignored that error. 😅 Fortunately it is really not needed, unlike |
Issue
Since the recent update on Home Assistant brought in v9.1.1 (#6906), the following integrations are no longer working:
assist_pipeline
bluetooth_adapters
cloud
mobile_app
This is caused by the missing pip dependency
webrtc-noise-gain
.It is not built due to the missing C++11 compiler.
The same issue has been raised in #6914 (comment).
Fix
This pull request adds
g++
as one of the dependencies of Home Assistant, by default, regardless of HW architecture.Workaround
For fresh installation of Home Assistant, do this beforehand. Then, you may skip the second step.
Logs containing the error message
This is during the reinstallation of Home Assistant but may also happen on a fresh install on a device with no g++ installed beforehand.