Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1978009 - python-jupyter-console: loop parameter passed to asyncio.wait() breaks on Python 3.10
Summary: python-jupyter-console: loop parameter passed to asyncio.wait() breaks on Pyt...
Alias: None
Product: Fedora
Classification: Fedora
Component: python-jupyter-console
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
Reported: 2021-06-30 22:25 UTC by Jerry James
Modified: 2023-02-16 10:12 UTC (History)
5 users (show)

Fixed In Version: python-jupyter-console-6.4.0-3.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-07-02 10:42:45 UTC
Type: Bug

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github jupyter jupyter_console issues 245 0 None open asyncio.wait() no longer accepts the loop keyword in Python 3.10 2021-07-02 09:23:35 UTC

Description Jerry James 2021-06-30 22:25:58 UTC
Description of problem:
I am experimenting with bash_kernel.  An attempt to use it in Rawhide failed:

Traceback (most recent call last):
  File "/usr/bin/jupyter-console", line 33, in <module>
    sys.exit(load_entry_point('jupyter-console==6.4.0', 'console_scripts', 'jupyter-console')())
  File "/usr/lib/python3.10/site-packages/jupyter_core/", line 254, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/usr/lib/python3.10/site-packages/traitlets/config/", line 845, in launch_instance
  File "/usr/lib/python3.10/site-packages/jupyter_console/", line 148, in start
  File "/usr/lib/python3.10/site-packages/jupyter_console/", line 664, in mainloop
    main_task = asyncio.wait(tasks, loop=loop, return_when=asyncio.FIRST_COMPLETED)
TypeError: wait() got an unexpected keyword argument 'loop'
sys:1: RuntimeWarning: coroutine 'ZMQTerminalInteractiveShell.interact' was never awaited
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.

The issue is that asyncio.wait() no longer accepts the loop keyword in python 3.10; see

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. On a Rawhide machine (or in a Rawhide mock chroot), run "jupyter console"

Actual results:
The error shown above.

Expected results:
A Jupyter console.

Additional info:

Comment 1 Miro Hrončok 2021-07-02 09:33:34 UTC
The fix is quite simple:

I've added a smoke test for the console to %check, to ensure this won't happen again.

Comment 2 Fedora Update System 2021-07-02 10:40:52 UTC
FEDORA-2021-a01f706178 has been submitted as an update to Fedora 35.

Comment 3 Fedora Update System 2021-07-02 10:42:45 UTC
FEDORA-2021-a01f706178 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.