On Wed, Jan 14, 2026 at 11:03:50PM +0200, Henrik Ahlgren wrote:
> Package: hplip
> Version: 3.22.10+dfsg0-8.1
> Severity: normal
>
> Dear Maintainer,
>
> I don't think the patch 0086-add-compatibility-with-pythin3.13.patch
> (sic: pythin) is correct.
>
> It replaces readfp with read_file in one python file, in similar manner
> as the next patch in series
> (0087-Use-read_file-instead-of-readfp-for-python-3.12.patch) that makes
> the same fix to several other python files. But it does not fix the
> actual issue with regexp string format reported in the bug report
> #1094348. I suppose some mistake was made when preparing the patches.
Hi,
Issues with the regexps are handled in a separate bug report (and other ones
merged with it)
#1076154 [hplip-data: Python 3.12 reports various invalid escape sequences for
multiple files in /usr/share/hplip/base]
> I've noticed also one more Python 3.13 compatibility problem, in
> base/utils.py:
>
>
> hp-config_usb_printer[214163]: debug: Traceback (most recent call last):
> File "/usr/bin/hp-firmware", line 189, in <module>
> if d.downloadFirmware(usb_bus_id, usb_device_id):
> ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/share/hplip/base/device.py", line 2642, in downloadFirmware
> log.debug("%s bytes downloaded." % utils.commafy(bytes_written))
> ~~~~~~~~~~~~~^^^^^^^^^^^^^^^
> File "/usr/share/hplip/base/utils.py", line 476, in commafy
> return locale.format("%s", val, grouping=True)
> ^^^^^^^^^^^^^
> AttributeError: module 'locale' has no attribute 'format'
>
>
> This error occurs because the format function has been removed from the
> locale module in Python 3.12. To fix it, you should replace calls to
> locale.format with the appropriate alternative, such as using
> locale.format_string instead.
I think this one is not yet handled in Debian. Do not know if is fixed
in last upstream version.
Thanks for your feedback,
PS: I am not this package's maintainer.
--
Agustin