Shainny / DomoticzXiaomiPlugins

Domoticz's Python Plugins for Xiaomi devices
GNU General Public License v3.0
1 stars 6 forks source link

Can't load module miio #2

Open bongiozzo opened 4 years ago

bongiozzo commented 4 years ago

Hello!

I have Raspberry Pi 3b++ with Stretch installed

Operating System: Raspbian GNU/Linux 9 (stretch) Kernel: Linux 4.19.66-v7+ Architecture: arm

Domoticz installed via easy way with Python 3.5 configured.

2019-11-30 21:19:50.041 Status: Domoticz V4.10717 (c)2012-2019 GizMoCuz 2019-11-30 21:19:50.041 Status: Build Hash: b38b49e5, Date: 2019-05-09 15:04:08 2019-11-30 21:19:50.041 Status: Startup Path: /home/pi/domoticz/ 2019-11-30 21:19:50.197 Status: PluginSystem: Started, Python version '3.5.3'.

I installed Python3.7 (it was needed for other package) and changed /usr/bin/python3 -> python3.7

miio was installed for module https://github.com/deennoo/domoticz-Xiaomi-Led-Lamp And it works fine.

But your library can't load miio package How I can correct this?

2019-11-30 20:49:28.063 Error: (Xiaomi-Miio-PowerStrip) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/MiioPowerStrip/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'. 2019-11-30 20:49:28.063 Error: (Kitchen Power Strip) Module Import failed, exception: 'ImportError' 2019-11-30 20:49:28.063 Error: (Kitchen Power Strip) Module Import failed: ' Name: miio' 2019-11-30 20:49:28.063 Error: (Kitchen Power Strip) Error Line details not available.

bongiozzo commented 4 years ago

Should I build domoticz myself?