system-config-printer-kde.py crashed with AttributeError in fillMakeList()

Bug #282687 reported by Fabian Buch
8
Affects Status Importance Assigned to Milestone
kdeadmin (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: system-config-printer-kde

additionally the init.d cups link was broken and not started in runlevels

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/share/system-config-printer/system-config-printer-kde.py
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: system-config-printer-kde 0.11
PackageArchitecture: all
ProcAttrCurrent: unconfined
ProcCmdline: python /usr/share/system-config-printer/system-config-printer-kde.py
ProcEnviron:
 LANGUAGE=de_DE:de:en_GB:en
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/system-config-printer/system-config-printer-kde.py']
SourcePackage: system-config-printer-kde
Title: system-config-printer-kde.py crashed with AttributeError in fillMakeList()
Uname: Linux 2.6.27-7-generic i686
UserGroups:

Tags: apport-crash
Revision history for this message
Fabian Buch (buch) wrote :
Revision history for this message
Richard Birnie (rbirnie-deactivatedaccount) wrote :
Download full text (3.2 KiB)

Fabien,

Thanks for reporting this. I am able to reproduce this bug. The problem occurs when cups is not running. I was able to reproduce it by manually stopping cups.

Steps to reproduce:
1) Stop Cups 'sudo /etc/init.d/cups
2) Launch system-config-printer-kde
3) choose new printer from the tree in the left panel
4) Click the 'New Printer' button.
5) Under Select Connection the only option is 'other'
6) Enter 'cups-pdf:/' in the device uri box
7) Click Next and observe crash

My terminal output from the debugging session is below:
./system-config-printer-kde.py
Caught non-fatal exception. Traceback:
File "./system-config-printer-kde.py", line 1687, in getPPDs_thread
    c = cups.Connection ()
RuntimeError: httpConnectionEncrypt failed
Continuing anyway..
Caught non-fatal exception. Traceback:
File "./system-config-printer-kde.py", line 1687, in getPPDs_thread
    c = cups.Connection ()
RuntimeError: httpConnectionEncrypt failed
Continuing anyway..
Caught non-fatal exception. Traceback:
File "./system-config-printer-kde.py", line 1905, in nextNPTab
    (status, ppdname) = self.ppds.\
AttributeError: 'dict' object has no attribute 'getPPDNameFromDeviceID'
Continuing anyway..
Traceback (most recent call last):
  File "./system-config-printer-kde.py", line 1770, in on_btnNPForward_clicked
    self.nextNPTab()
  File "./system-config-printer-kde.py", line 1922, in nextNPTab
    self.fillMakeList()
  File "./system-config-printer-kde.py", line 2799, in fillMakeList
    makes = self.ppds.getMakes()
AttributeError: 'dict' object has no attribute 'getMakes'

I'm not sure whether this is really a bug in system-config-printer-kde or a problem with CUPS not being started correctly.

Fabien, ...

Read more...

Changed in system-config-printer-kde:
status: New → Confirmed
Revision history for this message
Richard Birnie (rbirnie-deactivatedaccount) wrote :

A patch for this has been committed to KDE SVN. In the future system-config-printer-kde should show a warning at start up if CUPS is not running

Changed in system-config-printer-kde:
status: Confirmed → Fix Committed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Fix released to Jaunty.

Changed in kdeadmin:
status: Fix Committed → Fix Released
Changed in kdeadmin (Ubuntu):
status: Fix Released → Fix Committed
Changed in kdeadmin (Ubuntu):
status: Fix Committed → Fix Released
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.