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

ModuleNotFoundError: No module named 'pymodbus.client.sync' #62

Closed
jvrrr opened this issue Oct 31, 2022 · 4 comments
Closed

ModuleNotFoundError: No module named 'pymodbus.client.sync' #62

jvrrr opened this issue Oct 31, 2022 · 4 comments

Comments

@jvrrr
Copy link

jvrrr commented Oct 31, 2022

Hi,

I tried to run the example file but get a error.
Do I something wrong or is there something I need to install or....

python3 /home/zigbee/Downloads/solaredge_modbus-master/example.py --json 192.168.178.22 11502
Traceback (most recent call last):
File "/home/zigbee/Downloads/solaredge_modbus-master/example.py", line 6, in
import solaredge_modbus
File "/usr/local/lib/python3.10/dist-packages/solaredge_modbus/init.py", line 7, in
from pymodbus.client.sync import ModbusTcpClient

Many thanks!!!

Kind regards,

Jasper

@nmakel
Copy link
Owner

nmakel commented Oct 31, 2022

You are most likely using an outdated version. Try updating the library (python3 -m pip --upgrade solaredge_modbus).

@jvrrr
Copy link
Author

jvrrr commented Nov 1, 2022

@nmakel
I think the syntax is wrong, I get a error.

With "pip3 list" I see that I'm running version 0.7.2

Any other suggestions?

Thanks a lot!!!!

@nmakel
Copy link
Owner

nmakel commented Nov 1, 2022

You're right. The syntax is python3 -m pip install --upgrade solaredge_modbus, depending on your system substitute python3 with plain python.

The reason I suspect you're running an older version is this:

from pymodbus.client import ModbusTcpClient

See how it doesn't match your error? Did you perhaps install an older version locally, and the newest version system wide with sudo?

@jvrrr
Copy link
Author

jvrrr commented Nov 2, 2022

After some update rounds the sample file is now working, many thanks!!!

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