homeassistant-midea-air-appliances-lan icon indicating copy to clipboard operation
homeassistant-midea-air-appliances-lan copied to clipboard

Unable to install Integration: Config flow could not be loaded: {"message":"Invalid handler specified"}

Open aredon opened this issue 11 months ago • 12 comments

Version of the custom_component

Configuration


2024-03-21 17:13:24.661 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.midea_dehumidifier_lan.config_flow
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1025, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1058, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, 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 1310, in _find_and_load_unlocked
  File "", line 488, in _call_with_frames_removed
  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 995, in exec_module
  File "", line 488, in _call_with_frames_removed
  File "/config/custom_components/midea_dehumidifier_lan/__init__.py", line 31, in 
    from midea_beautiful.lan import LanDevice
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/__init__.py", line 7, in 
    from midea_beautiful.lan import LanDevice, appliance_state
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/lan.py", line 13, in 
    from midea_beautiful.appliance import Appliance
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/appliance.py", line 8, in 
    from midea_beautiful.command import (
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/command.py", line 17, in 
    _order_lock = RLock()
                  ^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/context.py", line 73, in RLock
    return RLock(ctx=self.get_context())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 194, in __init__
    SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx)
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 57, in __init__
    sl = self._semlock = _multiprocessing.SemLock(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system
2024-03-21 17:13:24.664 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration midea_dehumidifier_lan: Exception importing custom_components.midea_dehumidifier_lan.config_flow


Describe the bug

Downloaded via HACS. Tried to install: image image

The issue persists after multiple restarts of home assistant and the host machine. I also tried changing the installed version of this integration and fully removing it. Nothing seems to help.

Debug log


Logger: homeassistant.loader
Source: loader.py:1025
First occurred: 5:13:06 PM (4 occurrences)
Last logged: 5:14:53 PM

Unexpected exception importing platform custom_components.midea_dehumidifier_lan.config_flow
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1025, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1058, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, 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 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  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 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/midea_dehumidifier_lan/__init__.py", line 29, in <module>
    from midea_beautiful.cloud import MideaCloud
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/__init__.py", line 7, in <module>
    from midea_beautiful.lan import LanDevice, appliance_state
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/lan.py", line 13, in <module>
    from midea_beautiful.appliance import Appliance
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/appliance.py", line 8, in <module>
    from midea_beautiful.command import (
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/command.py", line 17, in <module>
    _order_lock = RLock()
                  ^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/context.py", line 73, in RLock
    return RLock(ctx=self.get_context())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 194, in __init__
    SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx)
  File "/usr/local/lib/python3.12/multiprocessing/synchronize.py", line 57, in __init__
    sl = self._semlock = _multiprocessing.SemLock(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system


aredon avatar Mar 21 '24 22:03 aredon

Also of note is that the other integration in the screenshot isn't configured yet and I had this error before it was installed.

aredon avatar Mar 21 '24 23:03 aredon

i ve the same problem since 2 week.... "Invalid Handler Specified" any update to correct this ?

matthieukerdavid avatar Mar 26 '24 12:03 matthieukerdavid

I ended up going with Midea AC Lan for my cube dehumidifier instead. After some minor tweaks it's working.

Shame I couldn't use this more featured library but it is what it is.

aredon avatar Mar 26 '24 21:03 aredon

I'm also having the same problem. It looks like the most recent update to CORE may have broken this?? I am restoring back to 2.5 now to see if that fixes it.

ColtonYYZ avatar Apr 01 '24 05:04 ColtonYYZ

I'm also having the same problem. It looks like the most recent update to CORE may have broken this?? I am restoring back to 2.5 now to see if that fixes it.

Restoring did not fix the problem! :(

ColtonYYZ avatar Apr 01 '24 05:04 ColtonYYZ

"Midea AC LAN" seems to work fine - discovering both AC unit's that I have so I have switched over to it instead of this integration - for those having the same problem.

ColtonYYZ avatar Apr 02 '24 05:04 ColtonYYZ

"Midea AC LAN" seems to work fine - discovering both AC unit's that I have so I have switched over to it instead of this integration - for those having the same problem.

Of note is that Midea AC LAN is using some depreciated code and will stop working in Jan.

aredon avatar Apr 02 '24 16:04 aredon

"Midea AC LAN" seems to work fine - discovering both AC unit's that I have so I have switched over to it instead of this integration - for those having the same problem.

Of note is that Midea AC LAN is using some depreciated code and will stop working in Jan.

Oh great! Then nothing will work unless either of which are updated. I'm not holding my breath! Ugh

ColtonYYZ avatar Apr 02 '24 17:04 ColtonYYZ

I'm afraid it's the same issue as is being discussed here https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues/134 , the integration needs to be re-written after a change in Docker CE (this is the real root cause of why all of a sudden this stopped working and why a downgrade in e.g. Home Assistant doesn't solve it).

churchofnoise avatar Apr 03 '24 14:04 churchofnoise

"Midea AC LAN" seems to work fine - discovering both AC unit's that I have so I have switched over to it instead of this integration - for those having the same problem.

Of note is that Midea AC LAN is using some depreciated code and will stop working in Jan.

Oh great! Then nothing will work unless either of which are updated. I'm not holding my breath! Ugh

Good news, looks like the depreciated code is being addressed. So that one should keep working.

aredon avatar Apr 04 '24 05:04 aredon

Seems to be solved in version 0.9.4!

churchofnoise avatar Apr 12 '24 18:04 churchofnoise

Great! I see the update now! Thanks!

ColtonYYZ avatar Apr 12 '24 22:04 ColtonYYZ

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jun 12 '24 01:06 github-actions[bot]