Comment 2 for bug 2027972

Revision history for this message
In , Ahmad.javid (ahmad.javid-redhat-bugs) wrote :

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@1000.service/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