utils.py attempts to access unknown locale.format attribute
Description:
A bug, already reported upstream, affects the usage of hp-scan
of this package.
hp-scan --mode lineart
[…]
Traceback (most recent call last):
File "/usr/bin/hp-scan", line 1352, in <module>
utils.format_bytes(bytes_read))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/hplip/base/utils.py", line 482, in format_bytes
return ''.join([commafy(s), ' B'])
^^^^^^^^^^
File "/usr/share/hplip/base/utils.py", line 477, in commafy
return locale.format("%s", val, grouping=True)
^^^^^^^^^^^^^
AttributeError: module 'locale' has no attribute 'format'. Did you mean: '_format'?
Additional info:
- package version(s):
hplip 1:3.23.12-5
python 3.12.3-1
- config and/or log files:
- link to upstream bug report, if any: https://bugs.launchpad.net/hplip/+bug/2045507