nmakel / solaredge_modbus

SolarEdge Modbus data collection library
MIT License
145 stars 34 forks source link

error on import pymodbus 3.0.0 #59

Open jiemeb opened 1 year ago

jiemeb commented 1 year ago

I get this error with example.py address port from pymodbus.client.sync import ModbusTcpClient ModuleNotFoundError: No module named 'pymodbus.client.sync'

Iit's work when i modify init.py this two line

from pymodbus.client.sync import ModbusTcpClient
from pymodbus.client.sync import ModbusSerialClient

by

from pymodbus.client import ModbusTcpClient
from pymodbus.client import ModbusSerialClient

I don't know if is the right solution Regards Jean-Marie

nmakel commented 1 year ago

Thanks for letting me know. Seems like version 3.0.0 was recently released with a number of breaking changes.

I'll release a new version pinned to pymodbus >= 3.0.0 to address this.