Bug 2221311
| Summary: | [python3.12] hplip tools/binaries crash due depending on removed configparser.readfp() | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mikhail <mikhail.v.gavrilov> | ||||||||||||||||||
| Component: | hplip | Assignee: | Zdenek Dohnal <zdohnal> | ||||||||||||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||||||
| Priority: | unspecified | ||||||||||||||||||||
| Version: | rawhide | CC: | jridky, mikhail.v.gavrilov, tkorbar, twaugh, zdohnal | ||||||||||||||||||
| Target Milestone: | --- | ||||||||||||||||||||
| Target Release: | --- | ||||||||||||||||||||
| Hardware: | x86_64 | ||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/047e8405abf029606cb1a415cb16fcfc6fbf7d8 | ||||||||||||||||||||
| Whiteboard: | abrt_hash:a6a22bec60c78ef9b6f9a5b85fb36c7537d55eb8;VARIANT_ID=workstation; | ||||||||||||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||||||
| Last Closed: | 2023-07-20 14:20:03 UTC | Type: | --- | ||||||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||
| Embargoed: | |||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||
Created attachment 1974583 [details]
File: os_info
Created attachment 1974584 [details]
File: environ
Created attachment 1974585 [details]
File: mountinfo
Created attachment 1974586 [details]
File: open_fds
Created attachment 1974587 [details]
File: namespaces
Created attachment 1974588 [details]
File: backtrace
Created attachment 1974589 [details]
File: cpuinfo
Created attachment 1975628 [details]
Proposed patch
The readfp is removed from configparser module, so we need to use 'read_file'.
Fixed in rawhide https://bodhi.fedoraproject.org/updates/FEDORA-2023-077b459bc2 . |
Version-Release number of selected component: hplip-3.23.5-2.fc39 Additional info: reporter: libreport-2.17.11 kernel: 6.5.0-0.rc0.20230706gitc17414a273b8.12.fc39.x86_64+debug cmdline: /usr/bin/python3 -B /usr/lib/cups/backend/hpfax cgroup: 0::/system.slice/cups.service uid: 0 reason: g.py:131:read:AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'? executable: /usr/lib/cups/backend/hpfax type: Python3 package: hplip-3.23.5-2.fc39 runlevel: unknown exception_type: AttributeError crash_function: read interpreter: python3-3.12.0~b3-2.fc39.x86_64 Truncated backtrace: g.py:131:read:AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'? Traceback (most recent call last): File "/usr/lib/cups/backend/hpfax", line 86, in <module> from base.g import * File "/usr/share/hplip/base/g.py", line 240, in <module> sys_conf = SysConfig() ^^^^^^^^^^^ File "/usr/share/hplip/base/g.py", line 185, in __init__ ConfigBase.__init__(self, '/etc/hp/hplip.conf') File "/usr/share/hplip/base/g.py", line 90, in __init__ self.read() File "/usr/share/hplip/base/g.py", line 131, in read self.conf.readfp(fp) ^^^^^^^^^^^^^^^^ AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'? Local variables in innermost frame: self: <base.g.SysConfig object at 0x7f25b4057cb0> filename: '/etc/hp/hplip.conf' fp: <_io.TextIOWrapper name='/etc/hp/hplip.conf' mode='r' encoding='UTF-8'>