#1027387 python3-channels-redis: upstream bug: runtimeError: event loop is closed

#1027387#5
Date:
2022-12-30 19:39:40 UTC
From:
To:
Hi,

multiple python applications using channels-redis 4.0.0 have that issue:
https://github.com/django/channels_redis/issues/332

It doesn't look like it's going to be fixed soon.
It might be a good idea to not ship channels-redis 4.0.0 in bookworm.

Jérémy

#1027387#10
Date:
2024-02-19 11:58:01 UTC
From:
To:
Control: forwarded -1 https://github.com/django/channels_redis/issues/332
Control: tags -1 fixed-upstream
Control: fixed -1 4.1.0-1

I ran into this too just now, and it was very confusing.  I was able to
work around it by switching to RedisPubSubChannelLayer, but I'm not
totally sure that's a good idea: it's still marked as being in beta even
now, 4.0.0's RedisPubSubChannelLayer also suffers from
https://github.com/django/channels_redis/issues/343, and in my
application the switch provoked some kind of extremely weird coverage
failure, possibly https://github.com/python/cpython/issues/106749.

Since there is now an upstream fix
(https://github.com/django/channels_redis/pull/347), I think it would be
worth backporting this to bookworm.

#1027387#19
Date:
2024-02-19 12:15:34 UTC
From:
To:
Hello,

Bug #1027387 in python-channels-redis reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/python-channels-redis/-/commit/ba186f97e8cb93048cddce3253092b409180a4ea
------------------------------------------------------------------------
Ensure pools are closed on loop close in core

Closes: #1027387
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1027387

#1027387#26
Date:
2024-02-19 13:37:45 UTC
From:
To:
I've filed https://bugs.debian.org/1064276 to request permission to
upload this.

#1027387#31
Date:
2024-02-23 17:32:31 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-channels-redis, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1027387@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated python-channels-redis package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 21 Feb 2024 10:42:10 +0000
Source: python-channels-redis
Architecture: source
Version: 4.0.0-1+deb12u1
Distribution: bookworm
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1027387
Changes:
 python-channels-redis (4.0.0-1+deb12u1) bookworm; urgency=medium
 .
   * Team upload.
   * Cherry-pick from upstream:
     - Ensure pools are closed on loop close in core (closes: #1027387).
Checksums-Sha1:
 831b1f9091bda5ca6ff323c1e49cdcd440221380 2543 python-channels-redis_4.0.0-1+deb12u1.dsc
 a3f5b3e9d129a11fc5f6c1cf144226bc0c8a1ce0 5804 python-channels-redis_4.0.0-1+deb12u1.debian.tar.xz
Checksums-Sha256:
 5b40aacf59dfa0dc109e61f8a6b3858236c2d78b4cd97f434d4ad13653b99103 2543 python-channels-redis_4.0.0-1+deb12u1.dsc
 360073cf4c73a8eebe8fe517c77fb30da95a65e5675d8e0864206a5bd9906dea 5804 python-channels-redis_4.0.0-1+deb12u1.debian.tar.xz
Files:
 7c181bceccc43814894c127ef1666eeb 2543 python optional python-channels-redis_4.0.0-1+deb12u1.dsc
 73aca15d9e9d9836e31ca89e86591a5f 5804 python optional python-channels-redis_4.0.0-1+deb12u1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmXV1EAACgkQOTWH2X2G
UAtwEA//TjmACFp7Y4cclwsD5QmvUuXeM0M6Y47fbVt3lReh4OpL7bmnUeN/fB49
KRq8yFZ4I7PcfmZya7UMyxiLEj95AnuehRzkDefpMPQ+22Dc8oWnQMwmTvBspAte
R6oc+2yZxLNk0HDBlqQDIHBngP1L+2J4hfHy9Ghpds7TuHwJtVpIvjeKFWuYbnxY
Wyqq8cOLJXdhz/n+kguQEgt74Sg/BUD3kNc3DzlynSmmteRcflyW5rF/A3Eeyr55
6tdHLyB/FLZ+X2L1whvtrtsvTsDlN3SgX+ya/qN+pzFO+4yjGUyrpp9HUpLSfKXf
mxWTsdiQLQ8WgaXNGYFTZVl8R5esryCfxSBz1ZY5X4gYQdzIRcvL4vVT2oE/77h7
FFQUSNodi/XbHKaOwwMxTYPK86CiXYL34LDgB1aRrvyJ1i4xtndzZM4fCPCfsuzJ
jS7ZBmQM/24o90jVlMt7Lu3UyFdL3HdwFv5uD2qZBMKlOiSqjgunNq4D7R7o5y7J
kKCf8Sf3AxJOq6fej84kW1OG25YrT/kr6ZcRAJiISBjlLUNsa2/GKlhxtdB4n8XH
JpLHe/nMLU6wQJ/Bt4YbB0EsL6sAVjq+e5MDzF4ntgyo2mOZfRRcBIv6v4vLUqfl
pNZRXwGdiSSK4SIJvkkTmFuzKlqtBjjnQ3shpotHggWmY/C0rD4=
=MyUd
-----END PGP SIGNATURE-----