Open Micha-123 opened 1 year ago
try: sudo pip3 uninstall -U pymodbus sudo pip3 install -U pymodbus==2.5.3
The latest pymodbus has changed , if think since Python 3.7, so just change
from pymodbus.client.sync import ModbusSerialClient # RTU from pymodbus.client.sync import ModbusTcpClient # RTU over TCP
to
from pymodbus.client import ModbusSerialClient # RTU from pymodbus.client import ModbusTcpClient # RTU over TCP
The latest pymodbus has changed , if think since Python 3.7, so just change
from pymodbus.client.sync import ModbusSerialClient # RTU from pymodbus.client.sync import ModbusTcpClient # RTU over TCP
to
from pymodbus.client import ModbusSerialClient # RTU from pymodbus.client import ModbusTcpClient # RTU over TCP
This doesn't work but "sudo pip3 install -U pymodbus==2.5.3" works. THanks
packages are installed with
sudo pip3 install -U pymodbus pymodbusTCP
but still it not works and means "not found"
using last raspbian
2022-11-13 10:42:20.650 Error: Epever Batt Volt: (ModbusREAD) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/modbus-read/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'. 2022-11-13 10:42:20.659 Error: Epever Batt Volt: Traceback (most recent call last): 2022-11-13 10:42:20.660 Error: Epever Batt Volt: File "/home/pi/domoticz/plugins/modbus-read/plugin.py", line 177, in
2022-11-13 10:42:20.660 Error: Epever Batt Volt: from pymodbus.client.sync import ModbusSerialClient # RTU
2022-11-13 10:42:20.660 Error: Epever Batt Volt: ModuleNotFoundError: No module named 'pymodbus.client.sync'
2022-11-13 10:54:47.470 Error: Epever Batt Volt: (ModbusREAD) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/modbus-read/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2022-11-13 10:54:47.480 Error: Epever Batt Volt: Traceback (most recent call last):
2022-11-13 10:54:47.480 Error: Epever Batt Volt: File "/home/pi/domoticz/plugins/modbus-read/plugin.py", line 177, in
2022-11-13 10:54:47.480 Error: Epever Batt Volt: from pymodbus.client.sync import ModbusSerialClient # RTU
2022-11-13 10:54:47.480 Error: Epever Batt Volt: ModuleNotFoundError: No module named 'pymodbus.client.sync'