install-printerdriver.py crashed with ImportError in __main__: cannot import name PackageKitGlib

Bug #1045775 reported by David
42
This bug affects 6 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I was walking through the printer install wizard for a Xerox Phaser 6180MFP. When prompted, I selected the manufacturer's driver and hit next. This error popped up and the wizard continued. It appearded to switch to the built-in drivers after this error.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: system-config-printer-gnome 1.3.11+20120807-0ubuntu6
ProcVersionSignature: Ubuntu 3.5.0-13.14-generic 3.5.3
Uname: Linux 3.5.0-13-generic i686
ApportVersion: 2.5.1-0ubuntu4
Architecture: i386
CupsErrorLog:

CurrentDmesg:
 [ 15.774755] tg3 0000:04:00.0: eth0: Flow control is off for TX and off for RX
 [ 15.774891] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Date: Tue Sep 4 07:39:16 2012
ExecutablePath: /usr/share/system-config-printer/install-printerdriver.py
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120724.2)
InterpreterPath: /usr/bin/python2.7
Lpstat:
 Error: command ['lpstat', '-v'] failed with exit code 1: p11-kit: duplicate configured module: gnome-keyring.module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so
 lpstat: No destinations added.
MachineType: Dell Inc. Precision WorkStation T3400
PackageArchitecture: all
Papersize: letter
ProcCmdline: /usr/bin/python /usr/share/system-config-printer/install-printerdriver.py openprinting-ppds-postscript-xerox deb\ http://www.openprinting.org/download/printdriver/debian/\ lsb3.2\ main-nonfree
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-13-generic root=UUID=4f25d9fe-cd48-4a65-8b48-8853c7fbc61e ro quiet splash vt.handoff=7
PythonArgs: ['/usr/share/system-config-printer/install-printerdriver.py', 'openprinting-ppds-postscript-xerox', 'deb http://www.openprinting.org/download/printdriver/debian/ lsb3.2 main-nonfree']
SourcePackage: system-config-printer
Title: install-printerdriver.py crashed with ImportError in __main__: cannot import name PackageKitGlib
Traceback:
 Traceback (most recent call last):
   File "/usr/share/system-config-printer/install-printerdriver.py", line 3, in <module>
     from gi.repository import GLib, PackageKitGlib
 ImportError: cannot import name PackageKitGlib
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 12/09/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A11
dmi.board.name: 0TP412
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 7
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA11:bd12/09/2010:svnDellInc.:pnPrecisionWorkStationT3400:pvr:rvnDellInc.:rn0TP412:rvr:cvnDellInc.:ct7:cvr:
dmi.product.name: Precision WorkStation T3400
dmi.sys.vendor: Dell Inc.

Revision history for this message
David (endeavornet) wrote :
tags: removed: need-duplicate-check
Changed in system-config-printer (Ubuntu):
importance: Undecided → Medium
information type: Private → Public
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please run the following command in a terminal window and post the outpuit here:

sudo apt-get install --reinstall python-gi

If the command fails, run

sudo apt-get install python-gi

and also post the output of the command here.

Does system-config-printer work correctly for you now?

Changed in system-config-printer (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for system-config-printer (Ubuntu) because there has been no activity for 60 days.]

Changed in system-config-printer (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Yani Raafezaj (ytraaf) wrote :

Got the same error with a Brother MFC-7806DW. The reinstall of python-gi succeeded, and the printer now works, albeit crappily. Takes several minutes before the printer actually begins to do anything.

Revision history for this message
Yani Raafezaj (ytraaf) wrote :

Sorry, 7860DW. Got the digits reversed.

Revision history for this message
Alexander Federlin (alexander-federlin) wrote :

Output from sudo apt-get install --reinstall python-gi

alex@fatima:~$ sudo apt-get install --reinstall python-gi
[sudo] password for alex:
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 3 nicht aktualisiert.
Es müssen 232 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Hole:1 http://de.archive.ubuntu.com/ubuntu/ quantal-updates/main python-gi i386 3.4.0-1ubuntu0.1 [232 kB]
Es wurden 232 kB in 1 s geholt (180 kB/s)
(Lese Datenbank ... 602381 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Ersetzen von python-gi 3.4.0-1ubuntu0.1 (durch .../python-gi_3.4.0-1ubuntu0.1_i386.deb) ...
Ersatz für python-gi wird entpackt ...
python-gi (3.4.0-1ubuntu0.1) wird eingerichtet ...
Trigger für libc-bin werden verarbeitet ...
ldconfig deferred processing now taking place

No change, same crash afterwards...

Changed in system-config-printer (Ubuntu):
status: Expired → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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