HACS Failed to Load

Hello All,

I am trying to add HACS but I have following errors, note I have tried to remove and install a few times following the exact procedure.

Logger: homeassistant.config_entries
Source: config_entries.py:551
First occurred: 4:55:29 PM (1 occurrences)
Last logged: 4:55:29 PM

Error setting up entry for hacs
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hacs/__init__.py", line 246, in async_setup_entry
    setup_result = await async_initialize_integration(hass=hass, config_entry=config_entry)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hacs/__init__.py", line 214, in async_initialize_integration
    await async_try_startup()
  File "/config/custom_components/hacs/__init__.py", line 201, in async_try_startup
    startup_result = await async_startup()
                     ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hacs/__init__.py", line 159, in async_startup
    if not await hacs.data.restore():
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hacs/utils/data.py", line 163, in restore
    hacs = await async_load_from_store(self.hacs.hass, "hacs") or {}
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hacs/utils/store.py", line 51, in async_load_from_store
    return await get_store_for_key(hass, key).async_load() or {}
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 294, in async_load
    return await load_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 303, in _async_load
    return await self._async_load_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 391, in _async_load_data
    data["version"] == self.version
    ~~~~^^^^^^^^^^^
KeyError: 'version'

Thanks in advance.

Follow all the HACS install instructions, restart HA or reboot host, clear cache on browser, try another browser, etc.

No luck have tried multiple browsers, different machine, cache cleared . . .

This is the second log warning I get

Logger: homeassistant.data_entry_flow
Source: data_entry_flow.py:805
First occurred: 7:43:20 PM (1 occurrences)
Last logged: 7:43:20 PM

custom_components.hacs.config_flow::HacsFlowHandler calls async_show_progress without passing a progress task, this is not valid and will break in Home Assistant Core 2024.8. Please report it to the custom integration author

Run this search in your favorite search engine.

site:home-assistant.io HACS load

The 2nd warning is related to an HA core change a few weeks ago and is known issue.

No lock, any other thoughts? Or I’ll have to live life without HACS….

Did you reboot the machine after downloading HACS and before installing the HACS integration ?

Yes HA rebooted as per install and uninstall steps.