Your message dated Tue, 26 May 2026 12:49:45 +0000
with message-id <[email protected]>
and subject line Bug#1106749: fixed in python-fakeredis 2.35.1-1
has caused the Debian Bug report #1106749,
regarding python3-fakeredis: lua support not working, breaking django-redis
cache locking
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1106749: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106749
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-fakeredis
Version: 2.26.1-1
Severity: important
Dear maintainer,
While working on mentors.debian.net, we started to have CI failure
following the new version of fakeredis 2.26 [1].
It appears that the new version try to import lua51 from lupa, which is
not available in Debian, presumably because the embedded version of lua
is removed from lupa source.
This snippet below can be used to reproduce the bug:
```py
#!/usr/bin/python3
from django.core.cache import cache
from django.conf import settings
from fakeredis import FakeConnection
SETTINGS = {
"CACHES": {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/1",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
"CONNECTION_POOL_KWARGS": {"connection_class": FakeConnection},
}
}
},
}
settings.configure(**SETTINGS)
with cache.lock("key"):
print("locked")
```
With the following packages installed, this should work but it produce
the same stacktrace as on mentors' CI :
- python3-django-redis
- python3-fakeredis
- python3-lupa
Note that python3-lupa is not pulled by fakeredis and I think it should
since it's required to use the locking feature and more broadly, any
redis lua script dependent feature. Maybe as a Recommends or Suggests?
I'm not sure how to solve that, as in if it's a lupa issue and they
should add the lua51 module alias to lua, or if this should be fixed in
fakeredis.
Anyhow, an simple one liner fix would be:
```diff
diff --git a/fakeredis/commands_mixins/scripting_mixin.py
b/fakeredis/commands_mixins/scripting_mixin.py
index a0bd66d..c89690f 100644
--- a/fakeredis/commands_mixins/scripting_mixin.py
+++ b/fakeredis/commands_mixins/scripting_mixin.py
@@ -22 +22 @@ __LUA_RUNTIMES_MAP = {
- "5.1": "lupa.lua51",
+ "5.1": "lupa.lua",
```
Best,
[1]:
https://salsa.debian.org/mentors.debian.net-team/debexpo/-/jobs/7618262#L2642
--
Baptiste Beauplat
signature.asc
Description: This is a digitally signed message part
--- End Message ---
--- Begin Message ---
Source: python-fakeredis
Source-Version: 2.35.1-1
Done: Colin Watson <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-fakeredis, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Colin Watson <[email protected]> (supplier of updated python-fakeredis
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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 26 May 2026 13:19:08 +0100
Source: python-fakeredis
Architecture: source
Version: 2.35.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Colin Watson <[email protected]>
Closes: 1106749
Changes:
python-fakeredis (2.35.1-1) unstable; urgency=medium
.
* Team upload.
* New upstream release.
* Disable tests at build time more gracefully.
* Make module-level pytest.skip work properly.
* Fall back to lupa if a version-specific runtime isn't available (closes:
#1106749).
Checksums-Sha1:
64890c493d81d6070f30d4d474b7c2230a0c1c4d 2785 python-fakeredis_2.35.1-1.dsc
2e083ffcb7b79d3dcbd384518da1184fc26095e9 379057
python-fakeredis_2.35.1.orig.tar.gz
a20859266e6280590a2123fdcee4e2feec9ea4ef 6452
python-fakeredis_2.35.1-1.debian.tar.xz
Checksums-Sha256:
fd1501194e0012d7167119f3904831559de7ebc7eddbcd0c06ed0fa89a430484 2785
python-fakeredis_2.35.1-1.dsc
6b05c4da44bc3df441e30635526f61448c561aca49eb512c566633e6012b9167 379057
python-fakeredis_2.35.1.orig.tar.gz
3d4bf05003ec4709528884f7495d345eb753588431b32155c9e417202e01096c 6452
python-fakeredis_2.35.1-1.debian.tar.xz
Files:
8dea59cb7f8ca4d9af75718d9ce5df5a 2785 python optional
python-fakeredis_2.35.1-1.dsc
59aef42b6b293f4cab5cde5f6c114d48 379057 python optional
python-fakeredis_2.35.1.orig.tar.gz
b9593215ceb9da93ec1c9bdde54049ce 6452 python optional
python-fakeredis_2.35.1-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmoVkAsACgkQOTWH2X2G
UAuUAxAAsBKqNqr+tKvxo0xLO7lHMMdEBHjZwvp+zwaAwO8nNtf3DPCQ1AYvLAWO
zbZOoae7yC60CTveH3PymYc2hxkMLpwi0Qr84qXXVZX8/Ddmnl5r3VdHkC7QItdr
Y0tpgnZvuItTvUd2+GgV8uAmE096cETdB4l4rw32XVdzUp5qcfByrxydkN+5fOnO
T+itNaaR8YOQBUvykDCDB8+mV0yezixSPPd+gxVYzOC1M6AW1r52T2FZxFz+U1h9
t8xN9cbdGG4lK3FLHMxftVoPBw2FSLJQiEp+BF7Qu1FlRoIftJ7Daqr0+YcKNnod
jtDb+GakiIk/U+R+i8tCz4+Pn3xZbNoqy8tESMXGJ65kCFjJn79WpGEoFVEVOcFW
vtSc7gQBQuopBkNqy/xFrdIh6LWHqdoXst/6v/54OAgBEIoIsqghy/snWegsBGji
TA/K67pbt4xOgawkh+NXmbw3sJRwjwqPTT+GJf/xpByOrBOVFNG9mTdKSfvzR8QO
66kbhYqaR62IiIg0jTh7cdKFHjeBe8GL7ZPuuJeDVvX9YaBgObClZ0L1Z7PdKFHw
sWLlCMNaeRAOSDVfsC5UUYSWuXY92BXTk/5C0Xbi0MveZDLqMnIz0sYGh5rLeKqQ
kiKvy3UKhrIhhbTsWMcw7thKZk3X+ZnthO9kPRp+uuPTMYtvTXQ=
=JdZf
-----END PGP SIGNATURE-----
pgp26A7ipgqNJ.pgp
Description: PGP signature
--- End Message ---