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
71.81k stars 30.07k forks source link

Error HACS integration: Config flow could not be loaded: {"message":"Invalid handler specified"} #125623

Open gianry opened 2 weeks ago

gianry commented 2 weeks ago

The problem

I'm not able to install HACS integration ; I opened an issue on HACS GitHub but He wrote it is an home assistant issue ..

Please try to help me ....

What version of Home Assistant Core has the issue?

ore-2024.9.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

HACS

Link to integration documentation on our website

No response

Diagnostics information

Registratore: homeassistant.config_entries Fonte: config_entries.py:2894 Prima occorrenza: 21:08:48 (1 occorrenze) Ultima registrazione: 21:08:48

Error occurred loading flow for integration hacs: cannot import name 'VerificationMaterials' from 'sigstore.verify' (/usr/local/lib/python3.12/site-packages/sigstore/verify/init.py)

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

error hacs github

mib1185 commented 2 weeks ago

please provide the link to the issue you've reported to the hacs repository.

gianry commented 2 weeks ago

please provide the link to the issue you've reported to the hacs repository.

https://github.com/hacs/integration/issues/4051

gianry commented 2 weeks ago

I don't see the /usr/local/lib/python3.12/site-packages/sigstore/verify/init.py file in my home assistant installation

mib1185 commented 2 weeks ago

there is a breaking change in 3.0.0 of sigstore where VerificationMaterials has been removed. maybe we need to ping sigstore to <3 for now ... but i cannot find any reference for this right now :thinking:

gianry commented 2 weeks ago

@mib1185

I've found in the log the following warning upon HACS files installation in config folder

Registratore: homeassistant.util.loop Fonte: util/loop.py:136 Prima occorrenza: 21:08:48 (1 occorrenze) Ultima registrazione: 21:08:48

Detected blocking call to import_module with args ('custom_components.hacs.config_flow',) inside the event loop by integration 'config' at homeassistant/components/config/config_entries.py, line 179: return await super()._post_impl(request, data) (offender: /usr/src/homeassistant/homeassistant/loader.py, line 1296: 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 For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 462, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 537, in _handle resp = await handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware response = await handler(request) File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle result = await handler(request, request.match_info) File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin return await func(self, request, *args, *kwargs) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper return await method(view, request, data, args, kwargs) File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 172, in post return await self._post_impl(request, data) File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 179, in _post_impl return await super()._post_impl(request, data)

mib1185 commented 2 weeks ago

there is a breaking change in 3.0.0 of sigstore where VerificationMaterials has been removed. maybe we need to ping sigstore to <3 for now ... but i cannot find any reference for this right now 🤔

the only reference i could find is aiogithubapi which is also used by HACS in custom_components/hacs/config_flow.py

mib1185 commented 2 weeks ago

maybe another custom component requires sigstore in any version from 3.0? @gianry please check if you've other custom components installed manually

gianry commented 2 weeks ago

no, I've not any other custom components

gianry commented 2 weeks ago

cust comp folder

issue-triage-workflows[bot] commented 5 days 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.