After the update ha could not set up cloud, assist_pipeline, mobile_app and default_config

Hello,
I have just updated HA to 2023.5.2 on my Odroid C4 with dietpi. After the update did HA launch but with the error

The following integrations and platforms could not be set up:

cloud (Show logs)
assist_pipeline (Show logs)
mobile_app (Show logs)
default_config (Show logs)
Please check your config and logs.

Now will I provide some logs
log default_config

 Logger: homeassistant.setup
Source: setup.py:204
First occurred: 17:43:26 (1 occurrences)
Last logged: 17:43:26

Unable to set up dependencies of default_config. Setup failed for dependencies: assist_pipeline, cloud, mobile_app
Logger: homeassistant.setup
Source: setup.py:206
First occurred: 17:43:26 (1 occurrences)
Last logged: 17:43:26

Setup failed for default_config: (DependencyError(...), 'Could not setup dependencies: assist_pipeline, cloud, mobile_app')

Log mobile_app

Logger: homeassistant.loader
Source: deps/lib/python3.10/site-packages/webrtcvad.py:8
First occurred: 17:43:01 (3 occurrences)
Last logged: 17:43:26

Unexpected exception importing component homeassistant.components.cloud
Unexpected exception importing component homeassistant.components.assist_pipeline
Unexpected exception importing component homeassistant.components.mobile_app
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/loader.py", line 813, in get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/components/cloud/__init__.py", line 36, in <module>
    from . import account_link, http_api
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/components/cloud/http_api.py", line 19, in <module>
    from homeassistant.components import assist_pipeline, conversation, websocket_api
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/components/assist_pipeline/__init__.py", line 25, in <module>
    from .websocket_api import async_register_websocket_api
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/components/assist_pipeline/websocket_api.py", line 30, in <module>
    from .vad import VoiceCommandSegmenter
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/components/assist_pipeline/vad.py", line 4, in <module>
    import webrtcvad
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.10/site-packages/webrtcvad.py", line 8, in <module>
    __version__ = pkg_resources.get_distribution('webrtcvad').version
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/pkg_resources/__init__.py", line 514, in get_distribution
    dist = get_provider(dist)
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/pkg_resources/__init__.py", line 386, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/pkg_resources/__init__.py", line 956, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/pkg_resources/__init__.py", line 815, in resolve
    dist = self._resolve_dist(
  File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/pkg_resources/__init__.py", line 856, in _resolve_dist
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'webrtcvad' distribution was not found and is required by the application
Logger: homeassistant.setup
Source: setup.py:214
First occurred: 17:43:01 (3 occurrences)
Last logged: 17:43:26

Setup failed for cloud: Unable to import component: Exception importing homeassistant.components.cloud
Setup failed for assist_pipeline: Unable to import component: Exception importing homeassistant.components.assist_pipeline
Setup failed for mobile_app: Unable to import component: Exception importing homeassistant.components.mobile_app

All the other logs look like the same to those logs. I have already checked if The ‘webrtcvad’ distribution was installed but it was and I also removed it and reinstalled it but it doesn’t work. Does anyone know how to fix this? If you need more info don’t hesitate to ask.

1 Like

Had the same issue, but install ´webrtcvad’ with pip fixed it for me. Maybe different python version? Mine was updated to 3.11 on the latest update, and I had to do a couple of updates and restarts of homeassistant.

1 Like

Does your HA work normally on python version 3.11? If so I’m going to look if that helps. And how do I upgrade that version?

That was an unrelated upgrade that occurred - so no need for you to upgrade python if it worked on 3.10 and you’re still on 3.10.
I was just wondering if something similar happened - because if you say you installed it, but it’s not there, then something’s odd - most likely within python I would say?

Yeah I’m currently on 3.9 so I will upgrade to 3.10 or 3.11 but don’t know how to do it.

Oh, because in your logs it mentions 3.10 - so that might be the issue! You probably installed it into 3.9?

Oh yeah I see but when I run

python3 --version

It says 3.9

My mobile app also did not load - missing webrtcvad was the issue! Thanks for the hint!