Bug 2227212

Summary: [abrt] hplip: addPrinter(): setupdialog.py:1065:addPrinter:AttributeError: 'SetupDialog' object has no attribute 'fax_number'
Product: [Fedora] Fedora Reporter: arian.mohlmann <arian.mohlmann>
Component: hplipAssignee: Zdenek Dohnal <zdohnal>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: arian.mohlmann, jridky, tkorbar, twaugh, zdohnal
Target Milestone: ---Flags: zdohnal: needinfo? (arian.mohlmann)
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/9630a5da30931bb37059c146743fc387d959ef1
Whiteboard: abrt_hash:2518f36c2945f64ce63946e908ef92847029dcd5;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description arian.mohlmann@gmail.com 2023-07-28 10:33:46 UTC
Description of problem:
Unexpectily error pop's up without telling wat had happened. 

Version-Release number of selected component:
hplip-3.23.5-1.fc38

Additional info:
reporter:       libreport-2.17.11
kernel:         6.3.12-200.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/hp-setup -b usb
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-564e1b46-6dfe-467f-a214-8c5fe1619697.scope
uid:            1000
reason:         setupdialog.py:1065:addPrinter:AttributeError: 'SetupDialog' object has no attribute 'fax_number'
executable:     /usr/bin/hp-setup
type:           Python3
package:        hplip-3.23.5-1.fc38
runlevel:       N 5
exception_type: AttributeError
crash_function: addPrinter
interpreter:    python3-3.11.4-1.fc38.x86_64
comment:        Unexpectily error pop's up without telling wat had happened. 

Truncated backtrace:
setupdialog.py:1065:addPrinter:AttributeError: 'SetupDialog' object has no attribute 'fax_number'

Traceback (most recent call last):
  File "/usr/share/hplip/ui5/setupdialog.py", line 1422, in NextButton_clicked
    self.addPrinter()
  File "/usr/share/hplip/ui5/setupdialog.py", line 1065, in addPrinter
    if self.FaxNumberLineEdit.text() != self.fax_number:
                                        ^^^^^^^^^^^^^^^
AttributeError: 'SetupDialog' object has no attribute 'fax_number'

Local variables in innermost frame:
self: <ui5.setupdialog.SetupDialog object at 0x7f7188d027a0>
print_sts: 0

Comment 1 arian.mohlmann@gmail.com 2023-07-28 10:33:50 UTC
Created attachment 1980416 [details]
File: os_info

Comment 2 arian.mohlmann@gmail.com 2023-07-28 10:33:51 UTC
Created attachment 1980417 [details]
File: environ

Comment 3 arian.mohlmann@gmail.com 2023-07-28 10:33:53 UTC
Created attachment 1980418 [details]
File: mountinfo

Comment 4 arian.mohlmann@gmail.com 2023-07-28 10:33:54 UTC
Created attachment 1980419 [details]
File: open_fds

Comment 5 arian.mohlmann@gmail.com 2023-07-28 10:33:56 UTC
Created attachment 1980420 [details]
File: namespaces

Comment 6 arian.mohlmann@gmail.com 2023-07-28 10:33:57 UTC
Created attachment 1980421 [details]
File: backtrace

Comment 7 arian.mohlmann@gmail.com 2023-07-28 10:33:59 UTC
Created attachment 1980422 [details]
File: cpuinfo

Comment 8 Zdenek Dohnal 2023-07-31 12:08:03 UTC
Hi,

thank you for reporting the issue!

Are you able to reproduce the issue?

fax_number should get initialized in readwriteFaxInformation() from showAddPrinterPage(), which gets called to render 'Add printer' widget, so I'm not sure how the process got there without going fax_number initialized.