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

Asyncio related notimplementederror in Windows with Python 3.8 coming from zmq #175

Closed
ntouran opened this issue Oct 9, 2020 · 5 comments
Labels
bug Something is wrong: Highest Priority

Comments

@ntouran
Copy link
Member

ntouran commented Oct 9, 2020

I'm getting some errors during doc building, specifically when sphinx builds the jupyter notebooks, with errors that look like this:

Notebook error:
NotImplementedError in tutorials\data_model.nblink:
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "C:\Users\ntouran\venvs\ar38\lib\site-packages\nbclient\client.py", line 360, in _async_cleanup_kernel
    await ensure_async(self.kc.stop_channels())
  File "C:\Users\ntouran\venvs\ar38\lib\site-packages\jupyter_client\client.py", line 125, in stop_channels
    if self.shell_channel.is_alive():
  File "C:\Users\ntouran\venvs\ar38\lib\site-packages\jupyter_client\client.py", line 151, in shell_channel
    socket = self.connect_shell(identity=self.session.bsession)
  File "C:\Users\ntouran\venvs\ar38\lib\site-packages\jupyter_client\connect.py", line 561, in connect_shell
    return self._create_connected_socket('shell', identity=identity)
  File "C:\Users\ntouran\venvs\ar38\lib\site-packages\jupyter_client\connect.py", line 545, in _create_connected_socket
    sock = self.context.socket(socket_type)
  File "C:\Users\ntouran\venvs\ar38\lib\site-packages\zmq\sugar\context.py", line 226, in socket
    s = self._socket_class(self, socket_type, **kwargs)
  File "C:\Users\ntouran\venvs\ar38\lib\site-packages\zmq\_future.py", line 144, in __init__
    self._init_io_state()
  File "C:\Users\ntouran\venvs\ar38\lib\site-packages\zmq\asyncio\__init__.py", line 53, in _init_io_state
    self.io_loop.add_reader(self._fd, lambda : self._handle_events(0, 0))
  File "C:\users\ntouran\AppData\Local\Programs\Python\Python38\lib\asyncio\events.py", line 501, in add_reader
    raise NotImplementedError

This looks like an issue related to this documentation where this type of thing is just not supported in Windows.

Looks like this is mostly a problem in our dependencies.

@ntouran ntouran added the bug Something is wrong: Highest Priority label Oct 9, 2020
@ntouran
Copy link
Member Author

ntouran commented Oct 9, 2020

Looks like there's a very related issue here: jupyter/nbconvert#1372 with a workaround we can try.

@youngmit
Copy link
Contributor

Is this fixed in #174 ?

@ntouran
Copy link
Member Author

ntouran commented Oct 15, 2020

oh! yes it is fixed there. Thanks.

@ntouran ntouran closed this as completed Oct 15, 2020
@perceptualrobots
Copy link

oh! yes it is fixed there. Thanks.

How do I get this fix?

Do I need to "pip install" a particular version of a particular package?

@ntouran
Copy link
Member Author

ntouran commented Oct 19, 2020

How do I get this fix?

In your own project, just run code similar to what's shown here during initialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong: Highest Priority
Projects
None yet
Development

No branches or pull requests

3 participants