giejay / domoticz-gbridge-plugin

Domoticz plugin for the Kappelt gBridge
16 stars 4 forks source link

failed to load 'plugin.py' #15

Closed sailmich closed 4 years ago

sailmich commented 4 years ago

Hello, I have two Rpi3 with zStick and raspberry running. One has domoticz newest beta V4.10988 and the other V4.10954 running. I think I did the installation in the way as described in https://doc.gbridge.io/integration/domoticz.html. In both logs of domoticz I got the same error. Error: (gBridge) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-gbridge-plugin/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload:/usr/local/lib/python3.4/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.4/dist-packages:/usr/lib/dist-python'. 2019-07-12 17:51:05.002 Error: (gBridge-Steinel) Module Import failed, exception: 'ImportError' 2019-07-12 17:51:05.002 Error: (gBridge-Steinel) Error Line details not available. 2019-07-12 17:52:07.005 Error: gBridge-Steinel hardware (5) thread seems to have ended unexpectedly Any idea? The path is correct when I use a Terminal via ssh cd /home/pi/domoticz/plugins/domoticz-gbridge-plugin there is plugin.py. When open with sudo nano plugin.py its empty.

giejay commented 4 years ago

If its empty, then you probably didn't clone it correctly. Can you reclone?

sailmich commented 4 years ago

This morning code is in with sudo and without, but still same error

giejay commented 4 years ago

Can you do a chmod -R 666 on the folder?

sailmich commented 4 years ago

Do you mean folder domoticz-gbridge-plugin set to rw--rw--rw? Same error.

giejay commented 4 years ago

You are on master branch?

sailmich commented 4 years ago

Sorry what is a master branch?

giejay commented 4 years ago

How did you clone this repo? Or did you download the zip?

sailmich commented 4 years ago

As describe in gbridge documentation. Did git clone https://github.com/giejay/domoticz-gbridge-plugin.git in folder domoticz/plugins

giejay commented 4 years ago

That should be good, I'm kind of out of ideas

sailmich commented 4 years ago

Could it be a problem of Raspberry with python 3.4? https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin/issues/35

giejay commented 4 years ago

Ah yes, probably some features are used which are introduced in python 3.5. can you upgrade your python version?

sailmich commented 4 years ago

Seems to complicated for me. I don't want to mess my stable working domoticz. I tried it on my other Rpi and did something wrong. No I have a pyton 3.6 where I don't want it to have. If you can get me a step by step instruction I could try it. Thank you very much for your support

giejay commented 4 years ago

Other then deinstalling 3.4 and doing a new install of 3, which should install 3.6, using apt-get, I dont really know how I can help you further. I also dont exactly know which of my code is not compatible with 3.4, I don't use any ** args as far as I can see.

The best thing you can try is using docker. Then use compose or docker run domoticz and all should be fine.

sailmich commented 4 years ago

That's the point where I'm out :) Now I use another pizero as Domoticz remote server and try if gbridge work this way. Thank you very much for your support