Python, dossier installation
Publié : 25 avr. 2018, 20:33
Bonjour
J'ai un souci avec un plugin python que j'essaye d'écrire.
Quand je le lance, il me dit:
Je le déplace vers /usr/lib/python3.5/ plus de problème d'import mais cela me donne:
Merci
Antoine
J'ai un souci avec un plugin python que j'essaye d'écrire.
Quand je le lance, il me dit:
Je reinstalle Minimalmodubs avec pip3, qui le met alors dans: /usr/local/lib/python3.5/dist-packagesfailed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Drexel/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2018-04-25 18:09:24.955 Error: (Test) Module Import failed, exception: 'ImportError'
2018-04-25 18:09:24.955 Error: (Test) Module Import failed: ' Name: minimalmodbus'
Je le déplace vers /usr/lib/python3.5/ plus de problème d'import mais cela me donne:
Comment faire pour installer proprement et au bon endroit (pour Domoticz) le module à importer. Peut-on indiquer le plugin le chemin pour minmalmodbus ?2018-04-25 18:43:18.300 Error: (test2) 'onHeartbeat' failed 'ValueError'.
2018-04-25 18:43:18.301 Error: (test2) ----> Line 93 in /home/pi/domoticz/plugins/Drexel/plugin.py, function onHeartbeat
2018-04-25 18:43:18.301 Error: (test2) ----> Line 64 in /home/pi/domoticz/plugins/Drexel/plugin.py, function onHeartbeat
2018-04-25 18:43:18.301 Error: (test2) ----> Line 325 in /usr/lib/python3.5/minimalmodbus.py, function read_long
2018-04-25 18:43:18.301 Error: (test2) ----> Line 697 in /usr/lib/python3.5/minimalmodbus.py, function _genericCommand
2018-04-25 18:43:18.301 Error: (test2) ----> Line 798 in /usr/lib/python3.5/minimalmodbus.py, function _performCommand
2018-04-25 18:43:18.301 Error: (test2) ----> Line 1075 in /usr/lib/python3.5/minimalmodbus.py, function _extractPayload
Merci
Antoine