mass_queue icon indicating copy to clipboard operation
mass_queue copied to clipboard

No module named 'custom_components.mass_queue.util'

Open tjorim opened this issue 1 year ago • 3 comments

Error on version v0.6.2-b1:

Logger: homeassistant.setup
Source: setup.py:343
First occurred: 08:25:02 (1 occurrence)
Last logged: 08:25:02

Setup failed for custom integration 'mass_queue': Unable to import component: No module named 'custom_components.mass_queue.util'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 343, in _async_setup_component
    component = await integration.async_get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1026, in async_get_component
    self._component_future.result()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1006, 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 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1066, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, 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 "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/mass_queue/__init__.py", line 24, in <module>
    from .actions import (
    ...<3 lines>...
    )
  File "/config/custom_components/mass_queue/actions.py", line 60, in <module>
    from .util import find_image
ModuleNotFoundError: No module named 'custom_components.mass_queue.util'

tjorim avatar Oct 08 '25 06:10 tjorim

Seems to be fixed in https://github.com/droans/mass_queue/commit/ddced2c19ff3aa4fb0ff213ba4ab78b6e6e5d151 already, but not merged in dev or released yet.

tjorim avatar Oct 08 '25 06:10 tjorim

That's a known bug in the beta.

You are correct about the fix. That branch is unlikely to ever be merged but the fix will be added sometime soon. Unfortunately, I haven't been able to get around to it yet.

If you would like to submit a PR, I can get it pushed since it's just a single line.

droans avatar Oct 08 '25 11:10 droans

Fixed in v0.6.2-b2

droans avatar Oct 10 '25 00:10 droans