desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #151082
[Bug 1422004] Re: pkservice.py crashed with AttributeError in __init__(): 'module' object has no attribute 'MainLoop'
% uname -a
Linux pa 4.2.0-0.bpo.1-amd64 #1 SMP Debian 4.2.6-1~bpo8+1 (2015-11-18) x86_64 GNU/Linux
% hp-plugin
HP Linux Imaging and Printing System (ver. 3.15.11)
Plugin Download and Install Utility ver. 2.1
***
HP Linux Imaging and Printing System (ver. 3.15.11)
Plugin Download and Install Utility ver. 2.1
***
Downloading plug-in from: file:///home/pa/1/hplip-3.15.11-plugin.run
\Download in progress.......100%Download in progress.......100%Receiving digital keys: /usr/bin/gpg --homedir /home/pa/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.11 Plugin Self Extracting Archive................................................
HP Linux Imaging and Printing System (ver. 3.15.11)
Plugin Installer ver. 3.0
***
Plug-in version: 3.15.11
Installed HPLIP version: 3.15.11
Number of files to install: 42
>>> waiting for a long time <<<
\^CTraceback (most recent call last):
File "./plugin_install.py", line 249, in <module>
ok = installPlugin()
File "./plugin_install.py", line 56, in installPlugin
status, output = utils.run(cmd, passwordObj)
File "/usr/share/hplip/base/utils.py", line 1275, in run
i = child.expect(EXPECT_LIST)
File "/usr/share/hplip/base/pexpect/__init__.py", line 1418, in expect
timeout, searchwindowsize)
File "/usr/share/hplip/base/pexpect/__init__.py", line 1433, in expect_list
timeout, searchwindowsize)
File "/usr/share/hplip/base/pexpect/__init__.py", line 1502, in expect_loop
c = self.read_nonblocking(self.maxread, timeout)
File "/usr/share/hplip/base/pexpect/__init__.py", line 901, in read_nonblocking
r, w, e = self.__select([self.child_fd], [], [], timeout)
File "/usr/share/hplip/base/pexpect/__init__.py", line 1687, in __select
return select.select(iwtd, owtd, ewtd, timeout)
KeyboardInterrupt
error: Python gobject/dbus may be not installed
error: Plug-in install failed.
# dpkg -l | grep python-gobj
ii python-gobject 3.14.0-1 all Python 2.x bindings for GObject - transitional package
ii python-gobject-2 2.28.6-12+b1 amd64 deprecated static Python bindings for the GObject library
# dpkg -l | grep python-dbus
ii python-dbus 1.2.0-2+b3 amd64 simple interprocess messaging system (Python interface)
ii python-dbus-dev 1.2.0-2 all main loop integration development files for python-dbus
** Attachment added: "hp-doctor.log"
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1422004/+attachment/4526769/+files/hp-doctor.log
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to hplip in Ubuntu.
https://bugs.launchpad.net/bugs/1422004
Title:
pkservice.py crashed with AttributeError in __init__(): 'module'
object has no attribute 'MainLoop'
Status in HPLIP:
Fix Committed
Status in hplip package in Ubuntu:
Fix Released
Status in hplip source package in Vivid:
Fix Released
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
ProcVersionSignature: Ubuntu 3.16.0-22.29-generic 3.16.4
Uname: Linux 3.16.0-22-generic x86_64
ApportVersion: 2.16.1-0ubuntu2
Architecture: amd64
CupsErrorLog: E [14/Feb/2015:19:56:52 +0100] Unable to open listen socket for address [v1.::1]:631 - Cannot assign requested address.
Date: Sat Feb 14 05:59:51 2015
ExecutablePath: /usr/share/hplip/pkservice.py
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-1000-J110-series: usb://HP/Deskjet%201000%20J110%20series?serial=CN33A18VXG05YD
device for PDF: cups-pdf:/
MachineType: Acer Aspire 5943G
PackageArchitecture: all
Papersize: a4
PpdFiles:
HP-Deskjet-1000-J110-series: HP Deskjet 1000 j110 Series, hpcups 3.15.2
PDF: Generic CUPS-PDF Printer
ProcCmdline: /usr/bin/python3 /usr/bin/hp-pkservice
ProcEnviron:
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-22-generic root=UUID=e9be64c9-5b7e-438a-ac82-6b89bf946a86 ro quiet splash vt.handoff=7
PythonArgs: ['/usr/bin/hp-pkservice']
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.asset.tag: Base Board Asset Tag
dmi.board.name: Aspire 5943G
dmi.board.vendor: Acer
dmi.board.version: V1.15
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.version: V1.15
dmi.modalias: dmi:bvnAcer:bvrV1.15:bd10/21/2010:svnAcer:pnAspire5943G:pvrV1.15:rvnAcer:rnAspire5943G:rvrV1.15:cvnAcer:ct10:cvrV1.15:
dmi.product.name: Aspire 5943G
dmi.product.version: V1.15
dmi.sys.vendor: Acer
To manage notifications about this bug go to:
https://bugs.launchpad.net/hplip/+bug/1422004/+subscriptions