Closed jdkirkwood closed 7 months ago
Ubuntu 22.04 is packaged with Python 3.10.6
, but, for example, other distributions could be at 3.10.11
.
The asyncio
DeprecationWarning
on get_event_loop()
is removed in Python 3.10.9
, but it will return in the future.
https://github.com/python/cpython/commit/87f9b1d53f12538c579598304105974378677012
I can confirm that the depreciation warning is still there on 3.0.38
Same Python 3.10.6
installed on Ubuntu 22.04 LTS
Package included in (jupyter) notebook raises this one
Update: It seems not just Ubuntu is affected. I am running xonsh on Fedora 39 which now also ships Python 3.12. Manually applying the fix https://github.com/doronz88/python-prompt-toolkit/commit/a54890a59636fa234d584a14e0126a0cea8a43c3 mentioned in #1798 into the installed libs at least shuts up the deprecation warning and seems to work perfectly, at least from the little testing i did.
It think it should have been fixed by this PR: https://github.com/prompt-toolkit/python-prompt-toolkit/pull/1782 I also released prompt_toolkit 3.0.40 Let me know if it still does not fix the issue.
thank you for the official release, seems to have done exactly what i patched in by hand looking at the diffs on my install for the relevant file. Deprecation warning is and stays gone.
Hi,
233a818c15d935a8fda07cbb0d0102b7c1290337 in release 3.0.37 re-introduces
asyncio.get_event_loop()
which was deprecated and removed in a7759969891c54ea56abfa286524cc301eedaf05 earlier in the same release.My Python 3.10 venv fails with
prompt-toolkit==3.0.38
, but a similar Python 3.8 venv is ok. Downgrading toprompt-toolkit==3.0.36
allows my Python 3.10 venv to run normally.(#1726 starts with a different issue but has comments/links directly related to this issue).