I’m having a weird issue with my HACS-installed integrations after upgrading HACS to the latest version (v2.0.1): When upgrading or installing custom integrations, HACS/HA somehow fails to install necessary requirements as needed for the integration. For example, in the case of the ramses_cc
integration, after adding the repository and restarting HA I get:
2024-10-29 22:09:39.673 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'ramses_cc': Unable to import component: No module named 'ramses_rf'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1027, in async_get_component
self._component_future.result()
File "/usr/src/homeassistant/homeassistant/loader.py", line 1007, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1067, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/config/custom_components/ramses_cc/__init__.py", line 26, in <module>
from ramses_rf.entity_base import Entity as RamsesRFEntity
ModuleNotFoundError: No module named 'ramses_rf'
… even though the integration lists ramses_rf
as a requirement (which IIUC means it should get installed automatically): ramses_cc/custom_components/ramses_cc/manifest.json at 8e4deba67c8e56de788d67668fc20d76f2b84667 · zxdavb/ramses_cc · GitHub
No matter how many times I try to remove the custom integration, re-start HA in between, etc, the dependency doesn’t get installed.
I had a very similar issue with the Passive BLE Monitor failing to install aioblescan
, which again is listed as a requirement: ble_monitor/custom_components/ble_monitor/manifest.json at eb88dee978410038ea2b7cd7cbd6a1f006038167 · custom-components/ble_monitor · GitHub
I’m running HA 2024.10.4 in a container, using podman.