system-config-printer-kde applet traceback with network printers configured

Bug #480963 reported by Georg Brandl
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
kdeadmin (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: kdeadmin

I have a printer configuration with several IPP network printers that I configured with the system-config-printer-kde applet from Kubuntu 9.04. In 9.10, when selecting the applet in the systemsettings app, it is stuck on the "server settings" view; one can't select any printers in the left-side treeview.

This traceback (also attached) is:

Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 424, in on_tvMainList_cursor_changed
    self.fillPrinterTab(name)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1190, in fillPrinterTab
    self.fillPrinterOptions(name, editablePPD)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1234, in fillPrinterOptions
    ppd.markDefaults()
AttributeError: 'bool' object has no attribute 'markDefaults'

A little investigation showed: ppd in this case is False, it is assigned in this code (line 992ff here):

        try:
            self.ppd = printer.getPPD()
        except cups.IPPError, (e, m):
            # Some IPP error other than IPP_NOT_FOUND.
            self.show_IPP_Error(e, m)
            # Treat it as a raw queue.
            self.ppd = False

where printer.getPPD() returns False. It seems that this is always a possibility, because self.ppd can also set to False in the error handler shown above -- it seems to represent a remote IPP queue.

ProblemType: Bug
Architecture: i386
Date: Wed Nov 11 22:55:10 2009
DistroRelease: Ubuntu 9.10
Package: system-config-printer-kde 4:4.3.2-0ubuntu2 [modified: usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py]
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: kdeadmin
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
Georg Brandl (gbrandl) wrote :
quazgar (quazgar)
tags: added: amd64
Revision history for this message
quazgar (quazgar) wrote :

Could this be possibly a duplicate of bug #485867

Revision history for this message
Søren Holm (sgh) wrote :

nromal socket connected prionter work ok. It only fails for ipp-printers as described.

Revision history for this message
Søren Holm (sgh) wrote :

I can clearly confirm it on a fully updated lucid.

Changed in kdeadmin (Ubuntu):
status: New → Confirmed
Revision history for this message
Sam Volojiy (svolo) wrote :

Confirmed on fully updated lucid kubuntu. Clicking away from a remote IPP printer also produces the following trace:

Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 424, in on_tvMainList_cursor_changed
    self.fillPrinterTab(name)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1174, in fillPrinterTab
    editable=editable)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1655, in add_job_option
    self.option_changed)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 66, in OptionWidget
    return OptionSelectOne(name, v, s, on_change)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 321, in __init__
    self.selector = QComboBox(self)
TypeError: QComboBox(QWidget parent=None): argument 1 has unexpected type 'instance'

Sam Volojiy (svolo)
tags: added: lucid
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.