Summary: | py3.10 deprecation warnings: There is no current event loop | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Michał Górny <mgorny> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 837899 | ||
Bug Blocks: |
Description
Michał Górny
![]() ![]() ![]() ![]() This happens in /usr/lib/portage/python3.10/socks5-server.py, too (encountered when installing binary packages)
* jitterentropy-rngd-1.2.7.tbz2 MD5 SHA1 size ;-) ... [ ok ]
/usr/lib/portage/python3.10/socks5-server.py:226: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
>>> Extracting info
We should migrate to asyncio.run which is available since python3.7. The bug has been referenced in the following commit(s): commit 631bedffe29124d693de3b539fc908d9feec1420 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2021-09-19 22:05:38 -0700 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2021-09-19 22:08:47 -0700 _safe_loop: fix python3.10 DeprecationWarning DeprecationWarning: There is no current event loop Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/util/futures/_asyncio/__init__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=8c0bcea15410ae81f2f157ba1b52d5c11cbf3966 commit 8c0bcea15410ae81f2f157ba1b52d5c11cbf3966 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2022-06-24 02:16:31 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2022-06-24 02:18:59 +0000 bin/socks5-server.py: fix python3.10 DeprecationWarning DeprecationWarning: There is no current event loop Bug: https://bugs.gentoo.org/794115 Signed-off-by: Zac Medico <zmedico@gentoo.org> bin/socks5-server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) |