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

Tracebacks after running any command #246

Open
MrMino opened this issue Jul 23, 2021 · 2 comments
Open

Tracebacks after running any command #246

MrMino opened this issue Jul 23, 2021 · 2 comments

Comments

@MrMino
Copy link

MrMino commented Jul 23, 2021

After running jupyter console and running any cell, an exception gets raised. See traceback below.

Environment:

  • Ubuntu 20.04.2 LTS
  • Python 3.8.10 / 3.9.1
  • IPython 7.25.0 / 8.0.0.dev (master)
  • jupyter-client==6.2.0
    jupyter-console==6.4.0
    jupyter-core==4.7.1
    

Traceback:

In [1]: /home/mrmino/.pyenv/versions/3.7.9/lib/python3.7/site-packages/jupyter_console/ptshell.py:852: RuntimeWarning: coroutine 'ZMQSocketChannel.msg_ready' was never awaited
  while self.client.iopub_channel.msg_ready():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

Unhandled exception in event loop:
  File "/home/mrmino/.pyenv/versions/3.7.9/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/home/mrmino/.pyenv/versions/3.7.9/lib/python3.7/site-packages/prompt_toolkit/input/vt100.py", line 168, in callback_wrapper
    callback()
  File "/home/mrmino/.pyenv/versions/3.7.9/lib/python3.7/site-packages/prompt_toolkit/application/application.py", line 691, in read_from_input
    self.key_processor.process_keys()
  File "/home/mrmino/.pyenv/versions/3.7.9/lib/python3.7/site-packages/prompt_toolkit/key_binding/key_processor.py", line 274, in process_keys
    self._process_coroutine.send(key_press)
  File "/home/mrmino/.pyenv/versions/3.7.9/lib/python3.7/site-packages/prompt_toolkit/key_binding/key_processor.py", line 186, in _process
    self._call_handler(matches[-1], key_sequence=buffer[:])
  File "/home/mrmino/.pyenv/versions/3.7.9/lib/python3.7/site-packages/prompt_toolkit/key_binding/key_processor.py", line 329, in _call_handler
    handler.call(event)
  File "/home/mrmino/.pyenv/versions/3.7.9/lib/python3.7/site-packages/prompt_toolkit/key_binding/key_bindings.py", line 102, in call
    result = self.handler(event)
  File "/home/mrmino/.pyenv/versions/3.7.9/lib/python3.7/site-packages/jupyter_console/ptshell.py", line 475, in _
    self.handle_iopub()
  File "/home/mrmino/.pyenv/versions/3.7.9/lib/python3.7/site-packages/jupyter_console/ptshell.py", line 854, in handle_iopub
    msg_type = sub_msg['header']['msg_type']

Exception 'coroutine' object is not subscriptable
Press ENTER to continue...
@igivis7
Copy link

igivis7 commented Dec 11, 2021

I get completely the same error.
I tried different computers with different linux distrubutions(Ubuntu, Mint, Manjaro KDE, Manjaro XFCE).
I tried different python versions (>3.6), different ipython verions and even with Docker.

Interesting that jupyter-qtconsole ,jupyter-notebook and ipython are working fine.

@igivis7
Copy link

igivis7 commented Dec 11, 2021

the problem is solved here:
github topic

Short version of solution is to downgrade the jupyter-client:
pip install jupyter-client==6.1.12

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

2 participants