-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After update to HA 2024.12 -> Unable to import component: No module named 'aiohuesyncbox' #142
Comments
I don't know what could cause this. Did you try restarting HA again? (you probably did, but just to be sure) Could you try installing it manually in the container itself by running command below and see what errors it gives. Maybe it gives some more insights.
|
Thanks for getting back to me so quickly. Tried few things but in the end, went back to 2024.11.3. Works well there. My HA sits on top of k3s so it was quick and easy. Btw - I had the same issue with some other HACS integrations and going back to 2024.11.3 also solved those. |
I would not say you solved the issue, more avoided it for now 🙂. Since you had the issue with more integrations it means it is something more generic. A big difference between the 202411.x and 2024.12.x is that Python was upgraded to 3.13, maybe that is the cause? But I don't really see how it would be an issue with a container setup (although I don't have a lot of experience with that) Maybe search in the forums/reddit for similar issues about dependencies not updating. |
Thanks - makes sense. I'll give it some time. Before creating the issues I did a bit of research but this is fresh. |
FYI - just gave it a go with fresh install. when trying to add the integration (after download) I get: 2025-01-03 22:26:53.959 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration huesyncbox: No module named 'aiohuesyncbox' python -m pip install aiohuesyncbox fixes the problem. thanks for the mentioned issue. |
Hmm... Home Assistant should install Unfortunately I am unable to reproduce this issue on my side 😞 |
Describe the bug
Everything worked great until upgrading to 2024.12
To Reproduce
Steps to reproduce the behavior:
upgrade to 2024.12
Expected behavior
integration loads
Please add the file itself (drag-and-drop in this box). Do not, copy-paste the contents here as it will make the issue unreadable
Logging
If there are errors in the Home Assistant logs please add them here.
Logger: homeassistant.setup
Source: setup.py:334
First occurred: 7:51:59 PM (1 occurrences)
Last logged: 7:51:59 PM
Setup failed for custom integration 'huesyncbox': Unable to import component: No module named 'aiohuesyncbox'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1034, in async_get_component
self._component_future.result()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1014, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._get_component, True
^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1074, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1022, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/huesyncbox/init.py", line 6, in
import aiohuesyncbox
ModuleNotFoundError: No module named 'aiohuesyncbox'
Environment
Provide details about the versions you are using, which helps to reproduce and find the issue quicker.
Additional info
Add any other info about the problem here.
The text was updated successfully, but these errors were encountered: