Error installing HACS intgration

Hi,
I’ve just installed the HACS integration, but after reboot I’ve reach this error in notifications tab:

Questo errore ha avuto origine da un'integrazione personalizzata.

Logger: homeassistant.config_entries
Source: custom_components/hacs/tasks/setup_frontend.py:6
Integration: HACS (documentation, issues)
First occurred: 21:51:41 (1 occurrences)
Last logged: 21:51:41

Error setting up entry for hacs
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/hacs/__init__.py", line 39, in async_setup_entry
    return await hacs_ui_setup(hass, config_entry)
  File "/config/custom_components/hacs/operational/setup.py", line 94, in async_setup_entry
    await _async_common_setup(hass)
  File "/config/custom_components/hacs/operational/setup.py", line 50, in _async_common_setup
    await hacs.tasks.async_load()
  File "/config/custom_components/hacs/tasks/manager.py", line 43, in async_load
    await asyncio.gather(*[_load_module(task) for task in task_modules])
  File "/config/custom_components/hacs/tasks/manager.py", line 39, in _load_module
    task_module = import_module(f"{__package__}.{module}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/config/custom_components/hacs/tasks/setup_frontend.py", line 6, in <module>
    from ..hacs_frontend import locate_dir
ModuleNotFoundError: No module named 'custom_components.hacs.hacs_frontend'

Has anyone a solution?

Thanks in advance

Alan Masutti

Hi alanmasu,
i had identical issue, i found this way to solve:

1. Open a terminal
2. Change to the user that is running Home Assistant
3. Run the HACS download script
wget -O - https://get.hacs.xyz | bash -

you can read entire documentation in this link
https://hacs.xyz/docs/setup/download

i hope can be useful
i hope my english is understandable…

1 Like

Thanks a lot… that’s working

Alan

1 Like

Hi,
This not working if you have installed with snap.

I’ve been searching for days to an answer to this if HA is installed with snap. @doru did you find a solution by chance?

Thanks. solved my Issue ConfigFlow invalid handler.