← Back to team overview

desktop-packages team mailing list archive

[Bug 1422004] Re: pkservice.py crashed with AttributeError in __init__(): 'module' object has no attribute 'MainLoop'

 

Thanks. The solution worked for me too!

-- 
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