Your message dated Mon, 14 Sep 2026 13:06:54 +0000
with message-id <[email protected]>
and subject line Bug#1145835: fixed in python-hiredis 2.3.2-3
has caused the Debian Bug report #1145835,
regarding python-hiredis: FTBFS against python 3.15rc1
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.)
--
1145835: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145835
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:python-hiredis
Version: 2.3.2-2
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Hi!
While rebuilding the python related packages against the Python 3.15rc1
version we found that TODO fails to build from source [1].
The issue is hiredis uses load_module in its setup.py, which is
deprecated since python 3.4, and removed in 3.15. Upstream already
tackled this problem and fixed the issue with the commit "MNT: do not
use deprecated load_module method"[2], which is included in the upstream
release 3.4.0.
I applied the upstream fix in the sandbox [3] to be able to build the
packages that depend on python-hiredis, please consider applying the
patch or updating the package to a newer upstream release to support the
upcoming 3.15 version.
Happy hacking,
[1]: https://debusine.debian.net/debian/r-python-python3.15/work-request/999452/
[2]:
https://github.com/redis/hiredis-py/commit/475d682cbf7f601785dfda68c79df313aca6bc06
[3]: https://debusine.debian.net/debian/r-python-python3.15/
--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
From: Thomas A Caswell <[email protected]>
Date: Fri, 30 Jan 2026 10:52:32 -0500
Subject: MNT: do not use deprecated load_module method (#218)
The load_module method has been deprecated from py34 and will be removed in
py315 [1] (it is already gone on CPython main).
The recommended replacement is exec_module, however the documentation [2]
suggests to use a simpler approach than using the loaders directly and runpy
[3] seemed better than sys.path hacking.
Given that this is a one-line file simply reading the file and parsing it 'by
hand' is an option.
[1] https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module
[2] https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly
[3] https://docs.python.org/3/library/runpy.html#runpy.run_path
Co-authored-by: Igor Malinovskiy <[email protected]>
---
setup.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/setup.py b/setup.py
index 93e5a37..77e84ce 100644
--- a/setup.py
+++ b/setup.py
@@ -4,17 +4,14 @@ try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
-import importlib
+import runpy
import glob
import io
import sys
def version():
- loader = importlib.machinery.SourceFileLoader(
- "hiredis.version", "hiredis/version.py")
- module = loader.load_module()
- return module.__version__
+ return runpy.run_path("hiredis/version.py")["__version__"]
def get_sources():
--- End Message ---
--- Begin Message ---
Source: python-hiredis
Source-Version: 2.3.2-3
Done: Stuart Prescott <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-hiredis, 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.
Stuart Prescott <[email protected]> (supplier of updated python-hiredis 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: Mon, 14 Sep 2026 22:36:06 +1000
Source: python-hiredis
Architecture: source
Version: 2.3.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Stuart Prescott <[email protected]>
Closes: 1145835
Changes:
python-hiredis (2.3.2-3) unstable; urgency=medium
.
* Team upload.
* Cherry-pick upstream patch for Python 3.15 compatibility, with thanks to
Maximiliano Curia for finding and forwarding the patch (Closes: #1145835).
* Update Standards-Version to 4.7.4 (no changes required).
* Fix naming of python-hiredis.docs to install into python3 module package.
* Remove unneeded Priority:optional and R3:no.
Checksums-Sha1:
dbcdb4a1cd2911c7069221e0ec9bcda88455e54e 2410 python-hiredis_2.3.2-3.dsc
1f5413eb5ae657e2d6eb16ef638e101fc97feb51 5256
python-hiredis_2.3.2-3.debian.tar.xz
f5d94b741c8e1041f3d1f9de9296818dce713e5f 218436
python-hiredis_2.3.2-3.git.tar.xz
290b9073e3b20335806f68a5c15019013b226b38 17696
python-hiredis_2.3.2-3_source.buildinfo
Checksums-Sha256:
69f5ce7d9ae1db102b054a6c03f96f2f5d32a6f3472a23bf9ec085843fd03eb7 2410
python-hiredis_2.3.2-3.dsc
3cd51f540fc9f739323025a58fd0bf3845731e5b557d94beaa10e8a9c157b08d 5256
python-hiredis_2.3.2-3.debian.tar.xz
ae6d222d6d0d3126a39a1ffc2ffcb24d21121a841d990eff249ba4755c5646bd 218436
python-hiredis_2.3.2-3.git.tar.xz
8fe89513cfbb7c87fd779fede1aab98295ed4361853e4a7a9000b746721ef59d 17696
python-hiredis_2.3.2-3_source.buildinfo
Files:
2d39e2c03f89c10043a1e30dace5e7a0 2410 python optional
python-hiredis_2.3.2-3.dsc
5938a08642d19bf2bb4c36df00a85332 5256 python optional
python-hiredis_2.3.2-3.debian.tar.xz
89bddffec459a88438426b5e0b2e3564 218436 python None
python-hiredis_2.3.2-3.git.tar.xz
b5351ddedb26fe1b09eeb36ab431abd4 17696 python optional
python-hiredis_2.3.2-3_source.buildinfo
Git-Tag-Info: tag=116b164a72ead7a7d94263406a038bcf22f8927e
fp=90e2d2c1ad146a1b7ebb891dbbc17ebb1396f2f7
Git-Tag-Tagger: Stuart Prescott <[email protected]>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmqn7NkACgkQYG0ITkaD
wHmdHQ//T3PyDQDw+AS6gkMW255tCNSXIIf4TiS//hVh8ev1aoeR1Y3F+yjBgyJ/
m61f30cVYh0cpwiJL4N+4+MTEskTOt8sA/cpXOxBu3BaqZAxjkIae0hwanb2GrFa
ygqci40+7+fha+IkwabNDvoPEyRWyi2hJziFoGVV/s8XKFD2+4NX3hZh13AzrRnj
cVAKx6XAprjKBZgXEMz8avmyC8o2KQ5mdGGYm2IUP0tMJdgexCETNJfIn6GFt2Rh
9DWu/wHhB/MWbKwK101uJXnZLLN99a7kUsbqkT/bjHDTMQ1U/d19gEeXhfxr3Imr
DxpHeHzofsfsoYrQ+jHP8z44fVOcKfOQPG1oHvfO7HaNxQcfIpnWGKOqh3i/9DBT
pWTts694jUZgN1wrl00vf3cCtYrpTDNayqPuNX/n5ud7yFCeKFbXhLk+6kvEyS7a
49tuqI6lcfBXXC1M3ndsk0uVHQ0yzLrIHl7WViiYCahEgrZdijnO3xrvVQnGsEzM
zKQGvUcZBJFyKzzezPKxrQjf+cawfaZm8BK63kT4+ENevWeRrAhg+FU+0VDTvRRP
HkDlC5oDeOlsto22qomBUibHYF4MLsDaadV1/Ow9v92yrM2FmfkOE1HlNg891jBx
jQDz5W1hQOTCuzYpp4GEPG3pjqh8+M1Yp3EGwTkBP1WLtXGc82A=
=u639
-----END PGP SIGNATURE-----
pgpaYAim1xBfo.pgp
Description: PGP signature
--- End Message ---