pkservice.py crashed with AttributeError in __init__(): 'module' object has no attribute 'MainLoop'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Fix Committed
|
High
|
Gaurav Sood | ||
hplip (Ubuntu) |
Fix Released
|
High
|
Till Kamppeter | ||
Vivid |
Fix Released
|
High
|
Till Kamppeter |
Bug Description
If an HP printer needs HPLIP with HP's proprietary plug-in (firmware files for printers, proprietary driver code pieces for printing and/or scanning) the automatically initiated installation of the plug-in fails and causes crash reports, leading to crash report pop-ups and non-working printing and scanning functionality. The problem is caused by the switchover from Python2 to Python3 in Vivid, especially also that the Python3 executable is named "python3" and not "python".
If the crash happens shortly before shutdown or reboot the pop-up can appear right after log-in.
[Impact]
All Vivid users who use a printer or multi-function device which needs HP's proprietary plug-in get crash pop-ups and their devices will not completely work or not work at all.
[Test Case]
Connect an HP printer or multi-function device which needs the plug-in (for which models see this bug report and the numerous duplicates) and set it up. As soon as the plug-in gets downloaded and installed, crash reports pop up, and the devices functionality which needs the plug-in will not work as plug-in installation does not complete.
The proposed package solves the problem.
To test without having an appropriate printer, simply run the command
hp-plugin
in a terminal window. With the current package it will fail as mentioned, with the proposed package plug-in installation will succeed.
[Regression Potential]
Very low. The patch is trivial and it affects only users who need the plug-in. All users of other HP printers or non-HP printers are not affected.
ProblemType: Crash
DistroRelease: Ubuntu 15.04
Package: hplip-data 3.15.2-0ubuntu2
ProcVersionSign
Uname: Linux 3.16.0-22-generic x86_64
ApportVersion: 2.16.1-0ubuntu2
Architecture: amd64
CupsErrorLog: E [14/Feb/
Date: Sat Feb 14 05:59:51 2015
ExecutablePath: /usr/share/
InstallationDate: Installed on 2014-05-08 (282 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
InterpreterPath: /usr/bin/python3.4
Lpstat:
device for HP-Deskjet-
device for PDF: cups-pdf:/
MachineType: Acer Aspire 5943G
PackageArchitec
Papersize: a4
PpdFiles:
HP-Deskjet-
PDF: Generic CUPS-PDF Printer
ProcCmdline: /usr/bin/python3 /usr/bin/
ProcEnviron:
ProcKernelCmdLine: BOOT_IMAGE=
PythonArgs: ['/usr/
SourcePackage: hplip
Title: pkservice.py crashed with AttributeError in __init__(): 'module' object has no attribute 'MainLoop'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
dmi.bios.date: 10/21/2010
dmi.bios.vendor: Acer
dmi.bios.version: V1.15
dmi.board.
dmi.board.name: Aspire 5943G
dmi.board.vendor: Acer
dmi.board.version: V1.15
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.
dmi.modalias: dmi:bvnAcer:
dmi.product.name: Aspire 5943G
dmi.product.
dmi.sys.vendor: Acer
tags: | removed: need-duplicate-check |
Changed in hplip (Ubuntu): | |
importance: | Undecided → Medium |
information type: | Private → Public |
Changed in hplip: | |
status: | New → Fix Released |
Changed in hplip (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in hplip (Ubuntu Vivid): | |
milestone: | none → vivid-updates |
Changed in hplip (Ubuntu Vivid): | |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
Changed in hplip (Ubuntu Vivid): | |
status: | Fix Released → In Progress |
description: | updated |
Changed in hplip: | |
status: | Fix Released → Fix Committed |
assignee: | nobody → Gaurav Sood (gaurav-sood) |
Changed in hplip: | |
importance: | Undecided → High |
Changed in hplip (Ubuntu): | |
milestone: | vivid-updates → none |
Status changed to 'Confirmed' because the bug affects multiple users.