Closed olegskod closed 8 months ago
This is not related this project and caused by the python-miio
package. There is nothing I can do to fix this from the integration, in fact you can see in the logs that xiaomi_miot
has failed as well which relies on the python-miio
too.
There are other people having the same issue without using the dreame_vacuum
so you should search for a fix with them.
https://community.home-assistant.io/t/2024-2-more-voice-more-icons-more-integrations-more-everything/686359/325
https://community.home-assistant.io/t/2024-2-more-voice-more-icons-more-integrations-more-everything/686359/336
I guess this need to be fixed from either HA Core or python-miio project but please respond to this if you can find/suggest a fix that I can do from the integration.
Core 2024.2.1 Supervisor 2024.01.1 Operating System 11.5
Logger: homeassistant.setup Source: setup.py:251 First occurred: 20:27:39 (2 occurrences) Last logged: 20:27:42
Setup failed for custom integration 'dreame_vacuum': Unable to import component: No module named 'imp' Setup failed for custom integration 'xiaomi_miot': Unable to import component: No module named 'imp' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component component = integration.get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 827, in get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 994, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/dreame_vacuum/init.py", line 8, in
from .coordinator import DreameVacuumDataUpdateCoordinator
File "/config/custom_components/dreame_vacuum/coordinator.py", line 20, in
from .dreame import DreameVacuumDevice, DreameVacuumProperty
File "/config/custom_components/dreame_vacuum/dreame/init.py", line 55, in
from .device import DreameVacuumDevice
File "/config/custom_components/dreame_vacuum/dreame/device.py", line 173, in
from .protocol import DreameVacuumProtocol
File "/config/custom_components/dreame_vacuum/dreame/protocol.py", line 18, in
from miio.miioprotocol import MiIOProtocol
File "/usr/local/lib/python3.12/site-packages/miio/init.py", line 12, in
from miio.device import Device, DeviceStatus # isort: skip
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/miio/device.py", line 13, in
from .miioprotocol import MiIOProtocol
File "/usr/local/lib/python3.12/site-packages/miio/miioprotocol.py", line 13, in
import construct
File "/usr/local/lib/python3.12/site-packages/construct/init.py", line 22, in
from construct.core import *
File "/usr/local/lib/python3.12/site-packages/construct/core.py", line 3, in
import struct, io, binascii, itertools, collections, pickle, sys, os, tempfile, hashlib, importlib, imp
ModuleNotFoundError: No module named 'imp'