Bug 2227212 - [abrt] hplip: addPrinter(): setupdialog.py:1065:addPrinter:AttributeError: 'SetupDialog' object has no attribute 'fax_number' [NEEDINFO]
Summary: [abrt] hplip: addPrinter(): setupdialog.py:1065:addPrinter:AttributeError: 'S...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:2518f36c2945f64ce63946e908e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-28 10:33 UTC by arian.mohlmann@gmail.com
Modified: 2023-07-31 12:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
zdohnal: needinfo? (arian.mohlmann)


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-07-28 10:33 UTC, arian.mohlmann@gmail.com
no flags Details
File: environ (3.05 KB, text/plain)
2023-07-28 10:33 UTC, arian.mohlmann@gmail.com
no flags Details
File: mountinfo (3.89 KB, text/plain)
2023-07-28 10:33 UTC, arian.mohlmann@gmail.com
no flags Details
File: open_fds (3.39 KB, text/plain)
2023-07-28 10:33 UTC, arian.mohlmann@gmail.com
no flags Details
File: namespaces (171 bytes, text/plain)
2023-07-28 10:33 UTC, arian.mohlmann@gmail.com
no flags Details
File: backtrace (596 bytes, text/plain)
2023-07-28 10:33 UTC, arian.mohlmann@gmail.com
no flags Details
File: cpuinfo (2.69 KB, text/plain)
2023-07-28 10:33 UTC, arian.mohlmann@gmail.com
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.