plcopen
I follow the step to install OpenPLCv3 but I can not run the file name webserver.py and I got this message from teminal.

pi@raspberrypi:~/OpenPLC_v3/webserver $ python webserver.py
Traceback (most recent call last):
File "webserver.py", line 12, in <module>
import monitoring as monitor
File "/home/pi/OpenPLC_v3/webserver/monitoring.py", line 2, in <module>
from pymodbus.client.sync import ModbusTcpClient
ImportError: No module named pymodbus.client.sync
pi@raspberrypi:~/OpenPLC_v3/webserver $ python3 webserver.py
Traceback (most recent call last):
File "webserver.py", line 11, in <module>
import openplc
File "/home/pi/OpenPLC_v3/webserver/openplc.py", line 7, in <module>
from Queue import Queue, Empty
ImportError: No module named 'Queue'

Please help.
Thank you so much
Quote 0 0
thiagoralves
It looks like you're missing one dependency. Just type
pip install pymodbus

and it will be fine.

Also, you shouldn't run the webserver.py file manually. Instead, just reboot your Pi and OpenPLC will load automatically.
Quote 0 0