sydspost / Domoticz-WiZ-connected-plugin

Domoticz WiZ connected plugin
MIT License
5 stars 6 forks source link

ModuleNotFoundError still occurs #12

Closed Renevandenbroek closed 2 years ago

Renevandenbroek commented 2 years ago

I did exactly

Than I add WiZ connected in hardware domoticz with my subnet 192.168.178.0/24 After that the following error occurs.

2021-11-23 18:57:18.503 Error: WiZ connected: (wiz) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-WiZ-connected-plugin/:/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'. 2021-11-23 18:57:18.504 Error: WiZ connected: (WiZ connected) Module Import failed, exception: 'ModuleNotFoundError' 2021-11-23 18:57:18.504 Error: WiZ connected: (WiZ connected) Module Import failed: ' Name: scapy' 2021-11-23 18:57:18.504 Error: WiZ connected: (WiZ connected) Error Line details not available. 2021-11-23 18:57:18.504 Error: WiZ connected: (WiZ connected) Exception traceback: 2021-11-23 18:57:18.505 Error: WiZ connected: (WiZ connected) ----> Line 53 in '/home/pi/domoticz/plugins/Domoticz-WiZ-connected-plugin/plugin.py', function

andpierard commented 2 years ago

I have also the same problem. I put the executable attribute on the plugin.py file. Wiz-connected-problem-1 Wiz-connected-problem-2

Renevandenbroek commented 2 years ago

I put the executable attribute on the plugin.py file too. But that makes no difference. The error stays the same. Any body any idea what I should do?

junnuvi commented 2 years ago

I also had this issue, for me it was fixed by install python3-scapy..

sudo apt-get install python3-scapy

sydspost commented 2 years ago

Rene, did the suggestion of junnuvi "sudo apt-get install python3-scapy" solve your problem ? Then i add this to the readme file.

Renevandenbroek commented 2 years ago

Sydspost , Yes it did. Although I had to in stall it a couple of times even with the option --fix-missing.

sydspost commented 2 years ago

Added solution of junnuvi to the readme file