Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77436 - [jupyter_console] traceback on enter

Attached to Project: Community Packages
Opened by Ronan Pigott (Brocellous) - Wednesday, 08 February 2023, 16:43 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 11 February 2023, 10:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The jupyter console is no longer functional. Pressing enter within the console produces the following python traceback regardless of the kernel or terminal emulator used:

$ jupyter-console --kernel=python
Jupyter console 6.4.4

Python 3.10.9 (main, Dec 19 2022, 17:35:49) [GCC 12.2.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.9.0 -- An enhanced Interactive Python. Type '?' for help.


Unhandled exception in event loop:
File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/lib/python3.10/site-packages/prompt_toolkit/input/vt100.py", line 173, in callback_wrapper
callback()
File "/usr/lib/python3.10/site-packages/prompt_toolkit/application/application.py", line 707, in read_from_input
self.key_processor.process_keys()
File "/usr/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_processor.py", line 270, in process_keys
self._process_coroutine.send(key_press)
File "/usr/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_processor.py", line 185, in _process
self._call_handler(matches[-1], key_sequence=buffer[:])
File "/usr/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_processor.py", line 320, in _call_handler
handler.call(event)
File "/usr/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_bindings.py", line 124, in call
result = self.handler(event)
File "/usr/lib/python3.10/site-packages/jupyter_console/ptshell.py", line 477, in _
self.handle_iopub()
File "/usr/lib/python3.10/site-packages/jupyter_console/ptshell.py", line 854, in handle_iopub
while run_sync(self.client.iopub_channel.msg_ready)():
File "/usr/lib/python3.10/site-packages/jupyter_core/utils/__init__.py", line 147, in run_sync
raise AssertionError

Exception
Press ENTER to continue...

It seems this is an upstream bug, but recording here since afaict it affects all users of jupyter_console on Arch. This is what I could find for upstream reports: https://github.com/jupyter/jupyter_console/issues/277.
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 11 February 2023, 10:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  jupyter-console 6.5.0
Comment by Toolybird (Toolybird) - Thursday, 09 February 2023, 04:13 GMT Comment by Ronan Pigott (Brocellous) - Saturday, 11 February 2023, 01:25 GMT
That is unfortunate.

Regardless, this was fixed upstream in https://github.com/jupyter/jupyter_console/pull/276. I was able to apply the PR locally and restore functionality.

Loading...