Skip to content
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

Open
sylwester- opened this issue Dec 10, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@sylwester-
Copy link

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.

  • Home Assistant Core version: 2024.12
  • Home Assistant operating environment (OS/Container/Supervised/Core): Container
  • Huesyncbox integration version: latest
  • Last working version (if known): this version worked with 2024.11

Additional info
Add any other info about the problem here.

@sylwester- sylwester- added the bug Something isn't working label Dec 10, 2024
@mvdwetering
Copy link
Owner

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.

python3 -m pip install aiohuesyncbox

@sylwester-
Copy link
Author

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.

@mvdwetering
Copy link
Owner

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.

@sylwester-
Copy link
Author

sylwester- commented Dec 12, 2024

Thanks - makes sense.

I'll give it some time. Before creating the issues I did a bit of research but this is fresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants