Bug 1626876

Summary: [abrt] hplip-gui: __writeChannel(): wifisetupdialog.py:843:showIOError:TypeError: 'Error' object does not support indexing
Product: [Fedora] Fedora Reporter: kxra
Component: hplipAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: jpopelka, tkorbar, twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/e51ef1a6b8bdb7757156221122065d9c9265f3f0
Whiteboard: abrt_hash:de40412bd59fb18a6cb460a995bdc0dba3fd6739;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-01 11:14:56 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: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description kxra 2018-09-10 01:36:41 UTC
Description of problem:
no system tray detected so it crashes

Version-Release number of selected component:
hplip-gui-3.18.6-1.fc28

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/hp-wificonfig -d hp:/usb/HP_LaserJet_CP1025nw?serial=00000SV03210S
crash_function: __writeChannel
exception_type: base.g.Error
executable:     /usr/bin/hp-wificonfig
interpreter:    python3-3.6.6-1.fc28.x86_64
kernel:         4.17.19-200.fc28.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
wifisetupdialog.py:843:showIOError:TypeError: 'Error' object does not support indexing

Traceback (most recent call last):
  File "/usr/share/hplip/ui5/wifisetupdialog.py", line 274, in showNetworkPage
    adaptor_list = self.wifiObj.getWifiAdaptorID(self.dev)
  File "/usr/share/hplip/base/LedmWifi.py", line 97, in getWifiAdaptorID
    ret = getAdaptorList(dev)
  File "/usr/share/hplip/base/LedmWifi.py", line 60, in getAdaptorList
    paramsList,code = readXmlTagDataFromURI(dev,URI,'<io:Adapters', '<io:Adapter>')
  File "/usr/share/hplip/base/LedmWifi.py", line 499, in readXmlTagDataFromURI
    dev.writeMarvell_EWS(data)
  File "/usr/share/hplip/base/device.py", line 2228, in writeMarvell_EWS
    return self.__writeChannel(self.openMarvell_EWS, data)
  File "/usr/share/hplip/base/device.py", line 2258, in __writeChannel
    raise Error(ERROR_DEVICE_IO_ERROR)
base.g.Error: ('Device I/O error', 12)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/hplip/ui5/wifisetupdialog.py", line 719, in NextButton_clicked
    self.showNetworkPage()
  File "/usr/share/hplip/ui5/wifisetupdialog.py", line 276, in showNetworkPage
    self.showIOError(e)
  File "/usr/share/hplip/ui5/wifisetupdialog.py", line 843, in showIOError
    FailureUI(self, self.__tr("<b>An I/O error occurred.</b><p>Please check the USB connection to your printer and try again.</p>(%s)" % str(e[0])))
TypeError: 'Error' object does not support indexing

Local variables in innermost frame:
e: Error('Device I/O error', 12)
self: <ui5.wifisetupdialog.WifiSetupDialog object at 0x7f7782d0b288>

Comment 1 kxra 2018-09-10 01:36:47 UTC
Created attachment 1481938 [details]
File: backtrace

Comment 2 kxra 2018-09-10 01:36:48 UTC
Created attachment 1481939 [details]
File: cgroup

Comment 3 kxra 2018-09-10 01:36:49 UTC
Created attachment 1481940 [details]
File: cpuinfo

Comment 4 kxra 2018-09-10 01:36:50 UTC
Created attachment 1481941 [details]
File: environ

Comment 5 kxra 2018-09-10 01:36:52 UTC
Created attachment 1481942 [details]
File: mountinfo

Comment 6 kxra 2018-09-10 01:36:53 UTC
Created attachment 1481943 [details]
File: namespaces

Comment 7 kxra 2018-09-10 01:36:54 UTC
Created attachment 1481944 [details]
File: open_fds

Comment 8 Tomas Korbar 2018-10-01 11:14:56 UTC

*** This bug has been marked as a duplicate of bug 1564770 ***