wificonfig.py crashed with TypeError in showIOError(): 'Error' object does not support indexing

Bug #1718129 reported by Daniel Holbach
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned
hplip (Ubuntu)
New
Medium
Unassigned

Bug Description

Not sure what happened.

ProblemType: Crash
DistroRelease: Ubuntu 17.10
Package: hplip-data 3.17.7+repack0-3
ProcVersionSignature: Ubuntu 4.12.0-13.14-generic 4.12.10
Uname: Linux 4.12.0-13-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Sep 19 10:10:31 2017
Dependencies:
 gcc-7-base 7.2.0-3ubuntu1
 libc6 2.24-12ubuntu1
 libgcc1 1:7.2.0-3ubuntu1
 liblzma5 5.2.2-1.3
 xz-utils 5.2.2-1.3
ExecutablePath: /usr/share/hplip/wificonfig.py
InstallationDate: Installed on 2017-08-26 (23 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170825)
InterpreterPath: /usr/bin/python3.6
Lpstat:
 device for DeskJet_3630: hp:/usb/DeskJet_3630_series?serial=CN59B1P0Q70658
 device for HP_DeskJet_3630_series_FBEAAB_: ipp://HP9457A5FBEAAB.local:631/ipp/print
MachineType: LENOVO 429149G
PackageArchitecture: all
Papersize: a4
PpdFiles:
 Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/DeskJet_3630.ppd', '/etc/cups/ppd/HP_DeskJet_3630_series_FBEAAB_.ppd'] failed with exit code 2: grep: /etc/cups/ppd/DeskJet_3630.ppd: Permission denied
 grep: /etc/cups/ppd/HP_DeskJet_3630_series_FBEAAB_.ppd: Permission denied
ProcCmdline: /usr/bin/python3 /usr/bin/hp-wificonfig -d hp:/usb/DeskJet_3630_series?serial=CN59B1P0Q70658
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.12.0-13-generic root=UUID=457973fc-512e-4b6a-b65b-85f15fa85b7b ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.6, Python 3.6.2, python3-minimal, 3.6.1-0ubuntu3
PythonArgs: ['/usr/bin/hp-wificonfig', '-d', 'hp:/usb/DeskJet_3630_series?serial=CN59B1P0Q70658']
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.13-2
SourcePackage: hplip
Title: wificonfig.py crashed with TypeError in showIOError(): 'Error' object does not support indexing
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip libvirt lpadmin plugdev sambashare sudo
dmi.bios.date: 05/18/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 8DET46WW (1.16 )
dmi.board.asset.tag: Not Available
dmi.board.name: 429149G
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr8DET46WW(1.16):bd05/18/2011:svnLENOVO:pn429149G:pvrThinkPadX220:rvnLENOVO:rn429149G:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.family: ThinkPad X220
dmi.product.name: 429149G
dmi.product.version: ThinkPad X220
dmi.sys.vendor: LENOVO

Revision history for this message
Daniel Holbach (dholbach) wrote :
tags: removed: need-duplicate-check
Changed in hplip (Ubuntu):
importance: Undecided → Medium
information type: Private → Public
Revision history for this message
Tomas Korbar (tkorbar) wrote :

Hello,
On Fedora this bug has occured too. It is caused by use of python3 where Exception class error message can not be accesed by indexing. The patch i'm attaching fixes it.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Use msg variable instead of [0] to acces error message" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.