humbertogontijo / homeassistant-roborock

Roborock integration for Home Assistant. This integration uses your devices from the Roborock App
GNU General Public License v3.0
610 stars 62 forks source link

Python 3.12 missing imp module #600

Open mnowok opened 3 months ago

mnowok commented 3 months ago

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.

hidrissi-hass commented 3 months ago

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

hidrissi-hass commented 3 months ago

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"
  ],
mrlordziemniak commented 3 months ago

Hi, I have edited file and still there is error

Frankymuc commented 3 weeks ago

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