Bug 2192131
| Summary: | parseQueues() doesn't get device uri from 'lpstat -v', because parsing pattern changed | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ahmad Javid <Ahmad.javid> | ||||||||||||||||||
| Component: | hplip | Assignee: | Zdenek Dohnal <zdohnal> | ||||||||||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||||||
| Priority: | unspecified | ||||||||||||||||||||
| Version: | 38 | CC: | Ahmad.javid, aoellerer, jridky, tkorbar, twaugh, zdohnal | ||||||||||||||||||
| Target Milestone: | --- | ||||||||||||||||||||
| Target Release: | --- | ||||||||||||||||||||
| Hardware: | x86_64 | ||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/6353a6007ba3d312fedb29cc1eb6745ee4ca4aa | ||||||||||||||||||||
| Whiteboard: | abrt_hash:5506b05b1d2e3a73aaa4c771222378fd5090a846;VARIANT_ID=workstation; | ||||||||||||||||||||
| Fixed In Version: | hplip-3.23.5-8.fc38 hplip-3.23.5-8.fc37 | Doc Type: | If docs needed, set a value | ||||||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||||||
| Last Closed: | 2023-08-07 01:26:23 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 1961022 [details]
File: os_info
Created attachment 1961023 [details]
File: environ
Created attachment 1961024 [details]
File: mountinfo
Created attachment 1961025 [details]
File: open_fds
Created attachment 1961026 [details]
File: namespaces
Created attachment 1961027 [details]
File: backtrace
Created attachment 1961028 [details]
File: cpuinfo
*** Bug 2176910 has been marked as a duplicate of this bug. *** Created attachment 1975792 [details]
Proposed patch
Fixed in rawhide for now, I will propagate it to the stable releases https://bodhi.fedoraproject.org/updates/FEDORA-2023-077b459bc2 . FEDORA-2023-5de7dea2a5 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-5de7dea2a5 FEDORA-2023-dec484f9d2 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-dec484f9d2 FEDORA-2023-5de7dea2a5 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-2023-5de7dea2a5` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-5de7dea2a5 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-dec484f9d2 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-dec484f9d2` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-dec484f9d2 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-5f9104efcd 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-2023-5f9104efcd` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-5f9104efcd See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-8144e3fe2f has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-8144e3fe2f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-8144e3fe2f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-5f9104efcd has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2023-8144e3fe2f has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. |
Description of problem: Not Load xsane app and error for the scan paper Version-Release number of selected component: hplip-3.22.10-4.fc38 Additional info: reporter: libreport-2.17.9 kernel: 6.2.11-300.fc38.x86_64 cmdline: /usr/bin/python3 /usr/bin/hp-diagnose_queues --gui cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-gnome-hplip-58280.scope uid: 1000 reason: queues.py:115:parseQueues:AttributeError: 'NoneType' object has no attribute 'startswith' executable: /usr/bin/hp-diagnose_queues type: Python3 package: hplip-3.22.10-4.fc38 runlevel: N 5 exception_type: AttributeError crash_function: parseQueues interpreter: python3-3.11.2-1.fc38.x86_64 Truncated backtrace: queues.py:115:parseQueues:AttributeError: 'NoneType' object has no attribute 'startswith' Traceback (most recent call last): File "/usr/bin/hp-diagnose_queues", line 120, in <module> queues.main_function(passwordObj, mode,ui_toolkit, quiet_mode ) File "/usr/share/hplip/base/queues.py", line 385, in main_function mapofDevices,status = parseQueues(mode) ^^^^^^^^^^^^^^^^^ File "/usr/share/hplip/base/queues.py", line 115, in parseQueues if device_uri.startswith("cups-pdf:/"): ^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'startswith' Local variables in innermost frame: mode: 1 is_hpcups_installed: True is_hpijs_installed: False st: 0 output: 'device for HP_LaserJet_Pro_MFP_M127fn: hp:/usb/HP_LaserJet_Pro_MFP_M127fn?serial=CNB9G9B4P8\r\ndevice for HP_LaserJet_Pro_MFP_M127fn-JAVID: hp:/usb/HP_LaserJet_Pro_MFP_M127fn?serial=CNB9G9B4P8\r\ndevice for HP_LaserJet_Pro_MFP_M127fn_fax: hpfax:/usb/HP_LaserJet_Pro_MFP_M127fn?serial=CNB9G9B4P8\r\ndevice for HP_LaserJet_Pro_MFP_M127fn_fax-JAVID: hpfax:/usb/HP_LaserJet_Pro_MFP_M127fn?serial=CNB9G9B4P8\r\n' status: True cups_printers: [('HP_LaserJet_Pro_MFP_M127fn', None), ('HP_LaserJet_Pro_MFP_M127fn-JAVID', None), ('HP_LaserJet_Pro_MFP_M127fn_fax', None), ('HP_LaserJet_Pro_MFP_M127fn_fax-JAVID', None)] p: ('HP_LaserJet_Pro_MFP_M127fn', None) match: <re.Match object; span=(11, 104), match='HP_LaserJet_Pro_MFP_M127fn_fax-JAVID: hpfax:/usb/> printer_name: 'HP_LaserJet_Pro_MFP_M127fn' device_uri: None