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

Cannot use the pymodbus.console because of a import error #22

Closed
raphapassini opened this issue Nov 6, 2024 · 4 comments · Fixed by #23
Closed

Cannot use the pymodbus.console because of a import error #22

raphapassini opened this issue Nov 6, 2024 · 4 comments · Fixed by #23

Comments

@raphapassini
Copy link

After installing pymodbus and repl I'm getting the following error:

Traceback (most recent call last):
  File "/path/to/file/pymodbus.console", line 5, in <module>
    from pymodbus_repl.client.main import main
  File "/path/to/file/.venv/lib/python3.11/site-packages/pymodbus_repl/client/main.py", line 15, in <module>
    from pymodbus.transaction import (
ImportError: cannot import name 'ModbusAsciiFramer' from 'pymodbus.transaction' (/home/raphael/stuff/plc-client/.venv/lib/python3.11/site-packages/pymodbus/transaction.py)
@alexrudd2
Copy link
Collaborator

Does it work with pymodbus 3.6.x?

The framers were reworked in 3.7.0 (https://github.com/pymodbus-dev/pymodbus/pull/2358/files) and this repo hasn't been updated to match yet.

@dhoomakethu
Copy link
Contributor

dhoomakethu commented Nov 7, 2024 via email

@dhoomakethu
Copy link
Contributor

There are a lot of breaking changes in the upstream pymodbus and for the time being I will be restricting the pymodbus to the last working version.

dhoomakethu added a commit that referenced this issue Nov 16, 2024
@dhoomakethu
Copy link
Contributor

@raphapassini please give #23 a try

dhoomakethu added a commit that referenced this issue Nov 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
workaround for #22
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

Successfully merging a pull request may close this issue.

3 participants