Bug 2270031 - hp-firmware: module 'locale' not longer provides method 'format', causing traceback
Summary: hp-firmware: module 'locale' not longer provides method 'format', causing tra...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:d8d5fa81286118373120233e025...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-18 10:32 UTC by arto
Modified: 2024-03-30 01:43 UTC (History)
5 users (show)

Fixed In Version: hplip-3.23.12-6.fc40 hplip-3.23.12-6.fc39 hplip-3.23.12-6.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-03-29 04:10:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2024-03-18 10:32 UTC, arto
no flags Details
File: environ (1.32 KB, text/plain)
2024-03-18 10:32 UTC, arto
no flags Details
File: cgroup (55 bytes, text/plain)
2024-03-18 10:32 UTC, arto
no flags Details
File: mountinfo (4.17 KB, text/plain)
2024-03-18 10:32 UTC, arto
no flags Details
File: open_fds (362 bytes, text/plain)
2024-03-18 10:32 UTC, arto
no flags Details
File: namespaces (163 bytes, text/plain)
2024-03-18 10:32 UTC, arto
no flags Details
File: backtrace (777 bytes, text/plain)
2024-03-18 10:32 UTC, arto
no flags Details
File: cpuinfo (3.07 KB, text/plain)
2024-03-18 10:32 UTC, arto
no flags Details

Description arto 2024-03-18 10:32:07 UTC
Description of problem:
I installed hplip and hplip-gui in order to be able to use an HP Laserjet 1020. The installation issued some errors, but nevertheless, the printer started working perfectly. But these errors now occur when the computer boots.

Version-Release number of selected component:
hplip-3.23.12-2.fc39

Additional info:
reporter:       libreport-2.17.11
kernel:         6.7.9-200.fc39.x86_64
cmdline:        /usr/bin/python3 /bin/hp-firmware -n -y3 -s 003:002
uid:            0
reason:         utils.py:477:commafy:AttributeError: module 'locale' has no attribute 'format'. Did you mean: '_format'?
executable:     /bin/hp-firmware
type:           Python3
package:        hplip-3.23.12-2.fc39
runlevel:       N 5
exception_type: AttributeError
crash_function: commafy
interpreter:    python3-3.12.2-2.fc39.x86_64
comment:        I installed hplip and hplip-gui in order to be able to use an HP Laserjet 1020. The installation issued some errors, but nevertheless, the printer started working perfectly. But these errors now occur when the computer boots.

Truncated backtrace:
utils.py:477:commafy:AttributeError: module 'locale' has no attribute 'format'. Did you mean: '_format'?

Traceback (most recent call last):
  File "/bin/hp-firmware", line 189, in <module>
    if d.downloadFirmware(usb_bus_id, usb_device_id):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/device.py", line 2674, in downloadFirmware
    log.debug("%s bytes downloaded." % utils.commafy(bytes_written))
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  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'?

Local variables in innermost frame:
val: 128999

Comment 1 arto 2024-03-18 10:32:10 UTC
Created attachment 2022311 [details]
File: os_info

Comment 2 arto 2024-03-18 10:32:12 UTC
Created attachment 2022312 [details]
File: environ

Comment 3 arto 2024-03-18 10:32:13 UTC
Created attachment 2022313 [details]
File: cgroup

Comment 4 arto 2024-03-18 10:32:15 UTC
Created attachment 2022314 [details]
File: mountinfo

Comment 5 arto 2024-03-18 10:32:16 UTC
Created attachment 2022315 [details]
File: open_fds

Comment 6 arto 2024-03-18 10:32:18 UTC
Created attachment 2022316 [details]
File: namespaces

Comment 7 arto 2024-03-18 10:32:19 UTC
Created attachment 2022317 [details]
File: backtrace

Comment 8 arto 2024-03-18 10:32:20 UTC
Created attachment 2022318 [details]
File: cpuinfo

Comment 9 Fedora Update System 2024-03-18 15:49:37 UTC
FEDORA-2024-92c661bce6 (hplip-3.23.12-5.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-92c661bce6

Comment 10 Fedora Update System 2024-03-18 16:13:37 UTC
FEDORA-2024-3fe60635dc (hplip-3.23.12-5.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-3fe60635dc

Comment 11 Fedora Update System 2024-03-18 16:33:24 UTC
FEDORA-2024-807d429e91 (hplip-3.23.12-5.fc38) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-807d429e91

Comment 12 Fedora Update System 2024-03-19 01:54:47 UTC
FEDORA-2024-92c661bce6 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-92c661bce6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-92c661bce6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2024-03-19 02:05:50 UTC
FEDORA-2024-3fe60635dc has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-3fe60635dc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-3fe60635dc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2024-03-19 03:15:15 UTC
FEDORA-2024-807d429e91 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-807d429e91`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-807d429e91

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2024-03-22 02:09:09 UTC
FEDORA-2024-49969830bf has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-49969830bf`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-49969830bf

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2024-03-22 02:11:10 UTC
FEDORA-2024-f2ee005f6e has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f2ee005f6e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f2ee005f6e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2024-03-22 02:35:14 UTC
FEDORA-2024-7520158d11 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-7520158d11`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-7520158d11

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2024-03-29 04:10:20 UTC
FEDORA-2024-49969830bf (hplip-3.23.12-6.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2024-03-30 01:09:00 UTC
FEDORA-2024-7520158d11 (hplip-3.23.12-6.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Fedora Update System 2024-03-30 01:43:58 UTC
FEDORA-2024-f2ee005f6e (hplip-3.23.12-6.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.