home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.61k stars 30.77k forks source link

Error when trying to install HACS integration: Config flow could not be loaded: {"message":"Invalid handler specified"} #117451

Closed jkempf42 closed 2 months ago

jkempf42 commented 6 months ago

The problem

When I try to load the HACS integration, I get the above error message. Log file output below.

What version of Home Assistant Core has the issue?

core-2024.6.0.dev0

What was the last working version of Home Assistant Core?

core-2024.6.0.dev0

What type of installation are you running?

Home Assistant Container

Integration causing the issue

HACS

Link to integration documentation on our website

https://hacs.xyz/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Here is the log file output from home-assistant.log:
2024-05-14 17:32:42.567 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by integration 'config' at homeassistant/components/config/config_entries.py, line 179: return await super()._post_impl(request, data) (offender: /workspaces/homeassistant-core/homeassistant/loader.py, line 1265: return importlib.import_module(f"{self.pkg_path}.{platform_name}")), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+config%22
2024-05-14 17:32:42.578 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration hacs: cannot import name 'keys' from 'securesystemslib' (/home/vscode/.local/lib/python3.12/site-packages/securesystemslib/__init__.py)
2024-05-14 17:33:03.108 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by integration 'config' at homeassistant/components/config/config_entries.py, line 179: return await super()._post_impl(request, data) (offender: /workspaces/homeassistant-core/homeassistant/loader.py, line 1265: return importlib.import_module(f"{self.pkg_path}.{platform_name}")), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+config%22
2024-05-14 17:33:03.126 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration hacs: cannot import name 'keys' from 'securesystemslib' (/home/vscode/.local/lib/python3.12/site-packages/securesystemslib/__init__.py)

Additional information

No response

MD54RUS commented 6 months ago

same on 2024.3.0 and pip install securesystemslib==0.31.0 not fix it

mborghesi-r commented 6 months ago

In my case, pip install securesystemslib==0.31.0 did fix it on 2024.1.0.dev0 . It took a while to me to figure it out because I was installing it directly from within the devcontainer, while adding it to the Dockerfile.dev solved the issue.

jkempf42 commented 6 months ago

I got HACS to load, but now during commissioning, a dialog box comes up to authorize using OAuth with Github as the authorization provider. But there is no "Submit" button on the bottom, so I can't active HACS after receiving authorization. Any ideas?

        jak

On Wed, May 15, 2024 at 8:54 AM mborghesi-r @.***> wrote:

In my case, pip install securesystemslib==0.31.0 did fix it on 2024.1.0.dev0 . It took a while to me to figure it out because I was installing it directly from within the devcontainer, while adding it to the Dockerfile.dev solved the issue.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/117451#issuecomment-2112915042, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADE62GRTYQL3CNI2J3GTRXDZCOAJXAVCNFSM6AAAAABHWURPPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJSHEYTKMBUGI . You are receiving this because you authored the thread.Message ID: @.***>

tolkn commented 5 months ago

in my case, it works from version 2024.5.3

jkempf42 commented 5 months ago

I am running HA in a container under VS Code in DevContainer mode. And the same release number.

           jak

On Fri, May 17, 2024 at 7:55 AM tolkn @.***> wrote:

in my case, it works from version 2024.5.3

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/117451#issuecomment-2117786575, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADE62GWIRB4YPBQRAN4LLL3ZCYK65AVCNFSM6AAAAABHWURPPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJXG44DMNJXGU . You are receiving this because you authored the thread.Message ID: @.***>

Sheldorias commented 5 months ago

Same issue for HA Core Version 2024.4.4 running on a dietpi cannot import name 'keys' from 'securesystemslib'

issue-triage-workflows[bot] commented 2 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.