mrin / domoticz-mirobot-plugin

Xiaomi Mi Robot Vacuum plugin for Domoticz
57 stars 28 forks source link

Python version #26

Open mattx38 opened 4 years ago

mattx38 commented 4 years ago

Hello,

I just reinstalled my Domoticz on Raspbian and I got errors with Xiaomi plugins :

2020-02-23 11:48:16.318 Error: (xiaomi-mi-robot-vacuum) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/xiaomi-mirobot/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'. 2020-02-23 11:48:16.318 Error: (Xiaomi S50) Module Import failed, exception: 'AttributeError' 2020-02-23 11:48:16.318 Error: (Xiaomi S50) Error Line details not available. 2020-02-23 11:49:27.544 Error: Xiaomi S50 hardware (6) thread seems to have ended unexpectedly

How can I make it works again ?

codezorz commented 4 years ago

The encoding attribute in Unpacker (msgpack) is deprecated, you have to downgrade this package to version 0.6.2 so it doesn't throw an exception, just an obsolete warning.

sudo pip3 install -U --ignore-installed msgpack=="0.6.2";