Skip to content

Error on Windows 11: "NotImplementedError" in asyncio #184

@TheFilipcom4607

Description

@TheFilipcom4607

I'm trying to run the project on Windows 11, but I encounter the following error:

Cancelling 0 outstanding tasks
Traceback (most recent call last):
  File "C:\Users\Filip\exo\main.py", line 192, in <module>
    loop.run_until_complete(main())
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1520.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "C:\Users\Filip\exo\main.py", line 177, in main
    loop.add_signal_handler(s, handle_exit)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1520.0_x64__qbz5n2kfra8p0\Lib\asyncio\events.py", line 582, in add_signal_handler
    raise NotImplementedError
NotImplementedError

It seems like loop.add_signal_handler is not supported on Windows. Is there a known workaround for this, or is native Windows support planned?

I can provide more info on request

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions