Hyundai-Kia-Connect / kia_uvo

A Home Assistant HACS integration that supports Kia Connect(Uvo) and Hyundai Bluelink. The integration supports the EU, Canada and the USA.
MIT License
450 stars 89 forks source link

When installing Integration: Config flow could not be loaded: {"message":"Invalid handler specified"} #951

Closed vavallee closed 3 weeks ago

vavallee commented 1 month ago

Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/kia_uvo/blob/master/README.md Region and Brand of car Canada, Hyundai Ioniq 5

Version of the integration v2.27.2

Describe the bug After installing the HACS plugin and restarting I get this error and it will not move forward with the installation.

Error

Config flow could not be loaded: {"message":"Invalid handler specified"}

Debug logs if an error occurred

Outlined here: https://github.com/fuatakgun/kia_uvo/blob/master/README.md Nothing in logs, or I cannot find them.

To Reproduce Install HA, HACS, Kia Ovo

Expected behavior In installs correctly.

Screenshots If applicable, add screenshots to help explain your problem. image

Additional context

cdnninja commented 1 month ago

Could you try 2.27.1 and let me know if same issue?

vavallee commented 1 month ago

Yes, just tried it, has the same error.

cdnninja commented 1 month ago

Please enable debug logs and provide that.

vavallee commented 1 month ago

All I get is : " 2024-10-22 20:08:10.988 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration kia_uvo: No module named 'hyundai_kia_connect_api'"

cdnninja commented 1 month ago

What are you hosting this on? Linux server docker image by any chance?

vavallee commented 1 month ago

What are you hosting this on? Linux server docker image by any chance?

Yes, Kubernetes with Docker image homeassistant/home-assistant:2024.10.0

vavallee commented 1 month ago

So when I exec-ed into the pod and installed the python package, it seemed to install ok. Just testing it now.

pip install hyundai-kia-connect-api

vavallee commented 1 month ago

sadly doesn't survive restart though.

cdnninja commented 1 month ago

You shouldn't need to install by hand. This will break future releases. Manifest.json instructs the install.

A bug existed in the Linux server image that caused this for any integration. Let me try find the link.

cdnninja commented 1 month ago

https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/945

If not on the image referenced I encourage you to open an issue on the docker image page.

I know home assistant changed install method for dependencies in that release as well.

cdnninja commented 4 weeks ago

I think this is the issue you are facing

https://github.com/home-assistant/core/issues/128214

vavallee commented 4 weeks ago

I think this is the issue you are facing

home-assistant/core#128214

Thanks, though I am not sure what exactly needs to be done to the HA image?

mbudnek commented 3 weeks ago

I just ran into this same issue, and the problem doesn't seem to be related to home-assistant/core#128214. For me, HA is successfully installing the hyundai_kia_connect_api package, but it installs it to /config/deps, and for whatever reason it still doesn't get found when I try to configure the integration:

2024-10-27 02:52:33.249 INFO (SyncWorker_2) [homeassistant.util.package] Attempting install of hyundai_kia_connect_api==3.23.8
2024-10-27 02:52:33.249 DEBUG (SyncWorker_2) [homeassistant.util.package] Running uv pip command: args=['uv', 'pip', 'install', '--quiet', 'hyundai_kia_connect_api==3.23.8', '--index-strategy', 'unsafe-first-match', '--upgrade', '--constraint', '/usr/src/homeassistant/homeassistant/package_constraints.txt', '--target', '/config/deps']
2024-10-27 02:52:34.591 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration kia_uvo: No module named 'hyundai_kia_connect_api'

And indeed, the package is there in /config/deps:

# ls /config/deps
beautifulsoup4-4.12.3.dist-info           idna-3.10.dist-info
bin                                       python_dateutil-2.9.0.post0.dist-info
bs4                                       pytz
certifi                                   pytz-2024.2.dist-info
certifi-2024.8.30.dist-info               requests
charset_normalizer                        requests-2.32.3.dist-info
charset_normalizer-3.2.0.dist-info        six-1.16.0.dist-info
curlify-2.2.1.dist-info                   six.py
curlify.py                                soupsieve
dateutil                                  soupsieve-2.6.dist-info
hyundai_kia_connect_api                   urllib3
hyundai_kia_connect_api-3.23.8.dist-info  urllib3-1.26.20.dist-info
idna
cdnninja commented 3 weeks ago

I encourage you to report this to the container owners since this isn't caused by Kia uvo.

vavallee commented 3 weeks ago

Latest image releaase 2024.10.4 solves the issue for me