pymodbus-dev / pymodbus

A full modbus protocol written in python
Other
2.16k stars 889 forks source link

Example server_async.py: AttributeError: module 'helper' has no attribute 'get_commandline' #2221

Closed peterz1972 closed 1 week ago

peterz1972 commented 1 week ago

The example "server_async.py" imports "helper". So I installed helper 2.5.0 via pip. In the example the function helper.get_commandline(...) gets called. Helper does not have this function. I get this error:

AttributeError: module 'helper' has no attribute 'get_commandline'

I also searched in the older helper versions for it. Did I install the wrong "helper"?

janiversen commented 1 week ago

I do not know what helper 2.5.0 is, it is not something we use.

Please read the documentation, to use the advanced examples you need to copy the examples directory.

janiversen commented 1 week ago

And just to be clear did you read the error message we provide ????

    print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
          https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
          for more information.")
peterz1972 commented 1 week ago

Oh! Thank you! Saved me maybe a lot of time - semi professionals must be quite annoying sometimes - sorry ... :-/

Am Sa., 22. Juni 2024 um 13:49 Uhr schrieb jan iversen < @.***>:

And just to be clear did you read the error message we provide ????

print("*** ERROR --> THIS EXAMPLE needs the example directory, please see \n\
      https://pymodbus.readthedocs.io/en/latest/source/examples.html\n\
      for more information.")

— Reply to this email directly, view it on GitHub https://github.com/pymodbus-dev/pymodbus/issues/2221#issuecomment-2184004226, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJLWFRBAPPLULRLFT6SADPLZIVQEZAVCNFSM6AAAAABJWTXW2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYDIMRSGY . You are receiving this because you authored the thread.Message ID: @.***>