Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on import pymodbus 3.0.0 #59

Open
jiemeb opened this issue Oct 16, 2022 · 1 comment
Open

error on import pymodbus 3.0.0 #59

jiemeb opened this issue Oct 16, 2022 · 1 comment

Comments

@jiemeb
Copy link

jiemeb commented Oct 16, 2022

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
Copy link
Owner

nmakel commented Oct 18, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants