Skip to content

Can't run pymodbus.simulator --help #1338

@beenje

Description

@beenje

Versions

  • Python: 3.10.6
  • OS: Linux
  • Pymodbus: 3.1.3
  • Modbus Hardware (if used):

Description

Trying to run pymodbus.simulator --help fails:

<coroutine object main at 0x7efcc073cf90>
sys:1: RuntimeWarning: coroutine 'main' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

The main function used as entry point for the simulator is an async function:

async def main():

It can't be used directly as an entry point. The entry point should be a function using asyncio.run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions