Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotImplementedError with add_signal_handler on Windows Platform #2

Open
Ethycs opened this issue May 26, 2023 · 0 comments
Open

NotImplementedError with add_signal_handler on Windows Platform #2

Ethycs opened this issue May 26, 2023 · 0 comments

Comments

@Ethycs
Copy link
Collaborator

Ethycs commented May 26, 2023

On a Windows setup, I've encountered a NotImplementedError in the asyncio.events.add_signal_handler method. Here's the traceback:

Traceback (most recent call last):
  File "F:\OneDrive\jupyter\remote_llm\mock_llm.py", line 30, in <module>
    asyncio.run(main())
  File "C:\miniconda3\envs\remote_llm\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\miniconda3\envs\remote_llm\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "F:\OneDrive\jupyter\remote_llm\mock_llm.py", line 25, in main
    with graceful_exit([server]):
  File "C:\miniconda3\envs\remote_llm\lib\contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "C:\miniconda3\envs\remote_llm\lib\site-packages\grpclib\utils.py", line 218, in graceful_exit
    loop.add_signal_handler(sig_num, _exit_handler, sig_num, servers, flag)
  File "C:\miniconda3\envs\remote_llm\lib\asyncio\events.py", line 553, in add_signal_handler
    raise NotImplementedError
NotImplementedError

It seems the add_signal_handler method is not supported on Windows platforms, leading to this error.

Windows 11 x64
Python 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant