-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
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:
pymodbus/pymodbus/server/simulator/main.py
Line 113 in 12859d0
| 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
Labels
No labels