-
Notifications
You must be signed in to change notification settings - Fork 947
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
Repl server startup bug #1118
Comments
Looks like Thanks for reporting |
I experienced the same using Python 3.10.6 |
As far as I can see this is not limited to python 3.10 but occurs in earlier versions as well. |
Versions
CommitsThe latest known tag that the server REPL was working fine is Proof
On the next tag,
GitHub 2 dots comparisonThe diff is rather large between the 2 hashes: https://github.com/riptideio/pymodbus/compare/d92516d..95e9581 Hard to point what actually changed The issue remains the same until the latest tag and latest commit in the dev branch |
Did you try with the release 3.0.0 (above you compare dev3 and dev4) ? There are some known problems with REPL, which I think @dhoomakethu is working on solving. |
@janiversen we still have errors in 3.0.0
|
ok just wanted to be sure. Let’s wait and see what @dhoomakethu says. |
Did you check if your local file was updated ? Normally we do not install in /user/local/bin however I am not expert on REPL |
@serroba please give it a try now with |
@dhoomakethu I am not sure if I am doing something wrong, but I am still seeing an error. Maybe I am missing an step. This is what I did:
I am not very well familiar with python/pip so maybe I am doing something wrong or missing an step |
also as a REPL
|
I think you need to remove the /usr/local/bin/pymodbus.server or at the very least verify it is renewed. |
@dhoomakethu although the help menu is back the functionality is not. When I run the headless server, and try to connect, this is what I get: However, when I run the sync server example, things work as expected: |
@serroba Can you run with |
@serroba Can you run with |
Also can you share the docker command used to run server inside the container? Please try without docker on the same host as well |
@dhoomakethu I used this Dockerfile to build the image: https://github.com/riptideio/pymodbus/pull/1145/files To build the image, I run this command:
I get the very same error with and without docker. This is in my host (OSX): When I run in verbose mode I get this:
|
Just to make sure, the issue is only with non repl mode, am I correct with my assumption? I will take a look in sometime. Thanks for the report |
@dhoomakethu I get the same error also in the REPL. I can, on the other hand, run the Trying to read from the REPL:
|
@serroba this is fixed , please pull the latest of |
@dhoomakethu I can also confirm. I have pull latest changes, create a new image, test via docker. Things are working as expected :) |
Versions
Pymodbus Specific
Description
I was trying to start the repl server with "pymodbus. server run" and got the following error message:
12:36:59 ERROR main:373 Invalid server ModbusServerTypes.tcp
Code and Logs
I managed to start the server by adding .value on the enum objects "ModbusServerTypes.tcp" and "ModbusFramerTypes.socket.value" in pymodbus/repl/server/main.py.
The working code snippet looks like this :
The text was updated successfully, but these errors were encountered: