Bug 2015910

Summary: [GUI] hp-setup crashes when loading smart_install module
Product: [Fedora] Fedora Reporter: Fedora User <vasil.minsk>
Component: hplipAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: jridky, tkorbar, twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/95bf7081859a091f954aa98e0388dc1bc752a8a8
Whiteboard: abrt_hash:db99036d5a0cd70700b5e4dbd33c73de26f034d7;VARIANT_ID=workstation;
Fixed In Version: hplip-3.21.12-1.fc35 hplip-3.21.12-1.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-21 16:21:46 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:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Fedora User 2021-10-20 10:33:48 UTC
Version-Release number of selected component:
hplip-3.21.2-11.fc35

Additional info:
reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-hplip-5569.scope
cmdline:        /usr/bin/python3 /usr/bin/hp-setup -u
crash_function: disable
exception_type: AttributeError
executable:     /usr/bin/hp-setup
interpreter:    python3-3.10.0-1.fc35.x86_64
kernel:         5.14.12-300.fc35.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
smart_install.py:236:disable:AttributeError: 'NoneType' object has no attribute 'exec_'

Traceback (most recent call last):
  File "/usr/share/hplip/ui5/setupdialog.py", line 1337, in NextButton_clicked
    self.showDevicesPage()
  File "/usr/share/hplip/ui5/setupdialog.py", line 562, in showDevicesPage
    smart_install.disable(GUI_MODE, 'qt4')
  File "/usr/share/hplip/base/smart_install.py", line 236, in disable
    dialog.exec_()
AttributeError: 'NoneType' object has no attribute 'exec_'

Local variables in innermost frame:
mode: 1
ui_toolkit: 'qt4'
dialog: None
app: None
passwordObj: None
dev_list: ['HP LaserJet Professional M1132 MFP']
return_val: 112
return_error_str: 'Failed to disable smart install'
url: 'http://hplipopensource.com/node/367'
file_name: 'SmartInstallDisable-Tool.run'
printer_names: '"HP LaserJet Professional M1132 MFP"'

Comment 1 Fedora User 2021-10-20 10:33:51 UTC
Created attachment 1835036 [details]
File: backtrace

Comment 2 Fedora User 2021-10-20 10:33:53 UTC
Created attachment 1835037 [details]
File: cpuinfo

Comment 3 Fedora User 2021-10-20 10:33:54 UTC
Created attachment 1835038 [details]
File: environ

Comment 4 Fedora User 2021-10-20 10:33:55 UTC
Created attachment 1835039 [details]
File: mountinfo

Comment 5 Fedora User 2021-10-20 10:33:56 UTC
Created attachment 1835040 [details]
File: namespaces

Comment 6 Fedora User 2021-10-20 10:33:57 UTC
Created attachment 1835041 [details]
File: open_fds

Comment 7 Zdenek Dohnal 2021-10-25 11:57:19 UTC
Hi Vasil,

thank you for reporting the issue!

Unfortunately I don't have a machine for smart installation, so I needed to alter one variable to get into scope where the traceback happens.

The traceback happens because we loaded ui5 module in canEnterGUIMode4() instead of ui4 as it wanted here:

try:
   from ui4.queuesconf import QueuesDiagnose

Qt4 is old, we've already used Qt5 for more than 5 years, but this line was missed.

Would you mind trying the rpms from the scratch build and see if it helps? https://koji.fedoraproject.org/koji/taskinfo?taskID=77793063

Comment 8 Fedora Update System 2022-01-17 15:55:38 UTC
FEDORA-2022-b33cf577e7 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-b33cf577e7

Comment 9 Fedora Update System 2022-01-17 16:29:35 UTC
FEDORA-2022-f5484faf06 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f5484faf06

Comment 10 Fedora Update System 2022-01-18 01:23:25 UTC
FEDORA-2022-f5484faf06 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-f5484faf06`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-f5484faf06

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

Comment 11 Fedora Update System 2022-01-18 01:44:27 UTC
FEDORA-2022-b33cf577e7 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-b33cf577e7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-b33cf577e7

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

Comment 12 Fedora Update System 2022-01-21 16:21:46 UTC
FEDORA-2022-b33cf577e7 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2022-01-30 02:07:36 UTC
FEDORA-2022-f5484faf06 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Red Hat Bugzilla 2023-09-15 01:16:30 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days