Bug 1045636

Summary: [abrt] hplip: soapfax.py:133:getPhoneNum:KeyError: 'faxsetupwizard-faxvoicenumber-faxnumber'
Product: [Fedora] Fedora Reporter: Jorg Bliesener <jbliesener>
Component: hplipAssignee: Tim Waugh <twaugh>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: jbliesener, jpopelka, ovasik, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/5fda334b27ba9ad2a83b6f4f3a1d7f070780d9b2
Whiteboard: abrt_hash:1cf36b995e760dcb3f7f1ecee8f4529b42b5149b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-23 11:10:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Jorg Bliesener 2013-12-20 22:00:16 UTC
Description of problem:
Add printer, specify IP address, click on "Next" in step 2, nothing appens, but the button changes to "Add Printer'. Click on "Add Printer". 

Program doesn't crash completely

Version-Release number of selected component:
hplip-3.13.11-4.fc20

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /usr/bin/hp-setup --gui
dso_list:       hplip-gui-3.13.11-4.fc20.x86_64
executable:     /usr/bin/hp-setup
kernel:         3.11.10-301.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            500

Truncated backtrace:
soapfax.py:133:getPhoneNum:KeyError: 'faxsetupwizard-faxvoicenumber-faxnumber'

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1240, in NextButton_clicked
    self.showAddPrinterPage()
  File "/usr/share/hplip/ui4/setupdialog.py", line 716, in showAddPrinterPage
    self.readwriteFaxInformation()
  File "/usr/share/hplip/ui4/setupdialog.py", line 1063, in readwriteFaxInformation
    self.fax_number = unicode(d.getPhoneNum())
  File "/usr/share/hplip/fax/soapfax.py", line 133, in getPhoneNum
    return fax_setup['faxsetupwizard-faxvoicenumber-faxnumber']
KeyError: 'faxsetupwizard-faxvoicenumber-faxnumber'

Local variables in innermost frame:
fax_setup: {}
self: <fax.soapfax.SOAPFaxDevice object at 0x3783590>
stream: <cStringIO.StringO object at 0x32bb688>

Comment 1 Jorg Bliesener 2013-12-20 22:00:24 UTC
Created attachment 839844 [details]
File: backtrace

Comment 2 Jorg Bliesener 2013-12-20 22:00:30 UTC
Created attachment 839845 [details]
File: environ

Comment 3 Jaromír Končický 2014-01-16 14:22:55 UTC
Hello. I need more information to track the problem. I unfortunately cannot reproduce it.
- I need debug output of the hp-setup script. Please run "hp-setup --gui --logging=debug" in terminal, do steps to reproduce the problem and post me everything what it prints into terminal (before it crashes).
- You can try editing the file "/usr/share/hplip/ui4/setupdialog.py". You might need to use root privileges ("sudo") for editing it. Go to line 704, it should be:
"        if fax_import_ok and prop.fax_build and \"
and edit it to
"        if 0 and fax_import_ok and prop.fax_build and \"
save and try to run the hp-setup again, do same steps to add a printer and tell me what happened.
Thanks.