Skip to content

add_signal_handler breaks windows build for python_example #11

@AKMaily

Description

@AKMaily

Expected behavior

Using the README.md on windows and linux starts the script without errors.

Received behavior

Starting the script on windows with the described userflow in the README.md : python main.py

throws an error:

Traceback (most recent call last):
  File "C:\Users\annat\OmnAIView2.0FE\DevDataServerOrigin\OmnAIView-DevDataServer\example_python\main.py", line 111, in <module>
    loop.add_signal_handler(signal.SIGINT, _on_shutdown)
  File "C:\Users\annat\AppData\Local\Programs\Python\Python312\Lib\asyncio\events.py", line 582, in add_signal_handler
    raise NotImplementedError
NotImplementedError

Reason

After a quick research I found that add_signal_handler is not provided on windows systems. See https://stackoverflow.com/questions/45987985/asyncio-loops-add-signal-handler-in-windows

Input on how to solve this would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions