homeassistant-roborock icon indicating copy to clipboard operation
homeassistant-roborock copied to clipboard

Python 3.12 missing imp module

Open mnowok opened this issue 1 year ago • 4 comments

Latest version of HA 2024.02 introduced python 3.12 thus roborock integration cannot start. HA shows clearly:

Unable to import component: No module named 'imp'

Can't see newer version of roborock on hacs. Using latest one.

mnowok avatar Feb 10 '24 14:02 mnowok

I created an issue on the python-roborock project : ModuleNotFoundError: No module named 'imp'

hidrissi-hass avatar Feb 12 '24 12:02 hidrissi-hass

You can edit the file : custom_components/roborock/manifest.json and add the latest construct version to "requirements" to force it also for python-roborock and restart HA . you should have something like that

"requirements": [
    "python-roborock==0.36.0",
    "ical==6.1.0",
    "dacite==1.8.0",
    "construct==2.10.70"
  ],

hidrissi-hass avatar Feb 16 '24 15:02 hidrissi-hass

Hi, I have edited file and still there is error

mrlordziemniak avatar Mar 02 '24 19:03 mrlordziemniak

hi, i have also problem since update HA 2024.xxx Roborock i mus deaktivate , if i not this doing HA restarts again and again. screenshort with erro message for your information.

It was pure coincidence, I wanted to set everything up again because a larger Linux system update was running almost at the same time, which also had something from Python and it happened exactly after restarting my PC and starting HA. Somehow strange Sorry if my English is not fine, but I also used the google translator Screenshot_20240511_171756

Frankymuc avatar May 11 '24 15:05 Frankymuc