Bug 2098983
| Summary: | python-jupyter-console fails to build with Python 3.11: TypeError: Passing coroutines is forbidden, use tasks explicitly. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | python-jupyter-console | Assignee: | Elliott Sales de Andrade <quantum.analyst> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | pviktori, python-sig, quantum.analyst |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-06-21 17:51:09 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2016048, 2045102, 2045109, 2098721 | ||
|
Description
Miro Hrončok
2022-06-20 09:38:29 UTC
This bugzilla is likely a fallout from the Python 3.11 rebuild. If your package (or some of the dependencies it has) failed to rebuild during the Python 3.11 rebuild, they now fail to install. To fix this, packages need to be rebuilt in Rawhide. We will slowly triage the bugzillas, but we'd appreciate your help. If you know this is blocked by an existing reported build failure or another package not yet rebuilt with Python 3.11, please mark it as such by using the "Depends On"/"Blocks" bugzilla fields. That will help us determine what failures to prioritize. If this is not Python 3.11 related, please remove the PYTHON3.11 blocking tracker. Thank you and sorry for the inconvenience. Let me know if you need any help. + jupyter-console --simple-prompt
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
Jupyter console 6.4.3
Python 3.11.0b3 (main, Jun 13 2022, 00:00:00) [GCC 12.1.1 20220507 (Red Hat 12.1.1-1)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.4.0 -- An enhanced Interactive Python. Type '?' for help.
Traceback (most recent call last):
File "/builddir/build/BUILDROOT/python-jupyter-console-6.4.3-3.fc37.noarch/usr/bin/jupyter-console", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.11/site-packages/jupyter_core/application.py", line 269, in launch_instance
return super().launch_instance(argv=argv, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/traitlets/config/application.py", line 972, in launch_instance
app.start()
^^^^^^^^^^^
File "/builddir/build/BUILDROOT/python-jupyter-console-6.4.3-3.fc37.noarch/usr/lib/python3.11/site-packages/jupyter_console/app.py", line 148, in start
self.shell.mainloop()
^^^^^^^^^^^^^^^^^^^^^
File "/builddir/build/BUILDROOT/python-jupyter-console-6.4.3-3.fc37.noarch/usr/lib/python3.11/site-packages/jupyter_console/ptshell.py", line 667, in mainloop
_, pending = loop.run_until_complete(main_task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/nest_asyncio.py", line 89, in run_until_complete
return f.result()
^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/futures.py", line 209, in result
raise self._exception
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/tasks.py", line 276, in __step
result = coro.send(None)
^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/tasks.py", line 424, in wait
raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Passing coroutines is forbidden, use tasks explicitly.
sys:1: RuntimeWarning: coroutine 'ZMQTerminalInteractiveShell.interact' was never awaited
loop.run_until_complete(asyncio.create_task(main_task)) ends with:
Traceback (most recent call last):
File "/builddir/build/BUILDROOT/python-jupyter-console-6.4.3-4.fc37.x86_64/usr/bin/jupyter-console", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.11/site-packages/jupyter_core/application.py", line 269, in launch_instance
return super().launch_instance(argv=argv, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/traitlets/config/application.py", line 972, in launch_instance
app.start()
^^^^^^^^^^^
File "/builddir/build/BUILDROOT/python-jupyter-console-6.4.3-4.fc37.x86_64/usr/lib/python3.11/site-packages/jupyter_console/app.py", line 148, in start
self.shell.mainloop()
^^^^^^^^^^^^^^^^^^^^^
File "/builddir/build/BUILDROOT/python-jupyter-console-6.4.3-4.fc37.x86_64/usr/lib/python3.11/site-packages/jupyter_console/ptshell.py", line 667, in mainloop
_, pending = loop.run_until_complete(asyncio.create_task(main_task))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/tasks.py", line 380, in create_task
loop = events.get_running_loop()
^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: no running event loop
And loop.run_until_complete(loop.create_task(main_task)) ends with the original error:
Traceback (most recent call last):
File "/builddir/build/BUILDROOT/python-jupyter-console-6.4.3-4.fc37.x86_64/usr/bin/jupyter-console", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.11/site-packages/jupyter_core/application.py", line 269, in launch_instance
return super().launch_instance(argv=argv, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/traitlets/config/application.py", line 972, in launch_instance
app.start()
^^^^^^^^^^^
File "/builddir/build/BUILDROOT/python-jupyter-console-6.4.3-4.fc37.x86_64/usr/lib/python3.11/site-packages/jupyter_console/app.py", line 148, in start
self.shell.mainloop()
^^^^^^^^^^^^^^^^^^^^^
File "/builddir/build/BUILDROOT/python-jupyter-console-6.4.3-4.fc37.x86_64/usr/lib/python3.11/site-packages/jupyter_console/ptshell.py", line 667, in mainloop
_, pending = loop.run_until_complete(loop.create_task(main_task))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/nest_asyncio.py", line 89, in run_until_complete
return f.result()
^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/futures.py", line 209, in result
raise self._exception
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/tasks.py", line 276, in __step
result = coro.send(None)
^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/tasks.py", line 424, in wait
raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Passing coroutines is forbidden, use tasks explicitly.
Is this a jupyter-console problem, or perhaps something in nest-asyncio instead? I assume this is very likely to be an incompatibility in nest-asyncio: "This module patches asyncio" Turns out it's in jupyter-console after all. Upstream PR: https://github.com/jupyter/jupyter_console/pull/270 Hello, Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok). All subpackages of a package against which this bug was filled are now installable or removed from Fedora 37. Thanks for taking care of it! |