#HACS stopped working after installing Alexa Media Player

1 messages · Page 1 of 1 (latest)

uneven umbra
#

First of all, I have no coding background, and I'm very new to Home Assistant, so please excuse me if I'm not able to explain this issue as clearly as you'd like, and if I use incorrect terminology here and there. Also, I posted this to reddit, and it got downvoted to oblivion, so I clearly did something wrong, but nobody has been kind enough to tell me what. :/ If I've done something wrong in this post, please tell me and I'll fix it.

I recently tried to install the Alexa Media Player add on. Up until that point HACS had been working faultlessly, and always had, except one time I had issues with AppDaemon and ControllerX so chose to uninstall/remove those. HACS had however, worked flawlessly ever since, with plenty of add ons running.

Until I went to install this Alexa add on. Now HACS has completely stopped working, all entities are disabled, with no way of restarting them.

HACS has disappeared from the side bar. Every time I start my HA, I get the following notification.

Invalid config
The following integrations and platforms could not be set up:

hacs (Show logs)
Please check your config and logs.

The log to which is attached.

And HACS appears as "Not Loaded" on my devices page.

Me being me, a tinkerer with no actual skills, noticed that it mentioned appdaemon, and figured it was probably something to do with the uninstall of appdaemon. So I reinstalled Appdaemon, which 'seems' to be running fine. However the issue is not fixed.

Any help appreciated.

logs in reply

#

Setup failed for custom integration 'hacs': Unable to import component: No module named 'custom_components.hacs.repositories.appdaemon'
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 "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/hacs/init.py", line 23, in
from .base import HacsBase
File "/config/custom_components/hacs/base.py", line 61, in
from .repositories import REPOSITORY_CLASSES
File "/config/custom_components/hacs/repositories/init.py", line 6, in
from .appdaemon import HacsAppdaemonRepository
ModuleNotFoundError: No module named 'custom_components.hacs.repositories.appdaemon'

uneven umbra
#

Fixed it... (I think)

Uninstalled HACS following the official guide, which included deleting specific HACS directories full of files.

Realised quickly that deleting each file one at a time was no fun, but file editor does not allow the deletion of populated directories.

Found Samba share, which allows access to the HA file system from windows as a share.

Deleted the directory, reinstalled HACS, and the problem seems to be fixed. I do need to install another HACS add on, to be sure that the error won't trigger again then, will report back either way.

But for now, HACS is back, my entities are working normally again, and I can restart HA without trigger the same error each time.