Bug 290807

Summary: system settings printer configuration not working (missing KCModule)
Product: [Plasma] system-config-printer-kde Reporter: kde
Component: generalAssignee: Jonathan Riddell <jr>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: cfeck, delonly, mityi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description kde 2012-01-06 15:51:49 UTC
Version:           unspecified (using KDE 4.7.4) 
OS:                Linux

I've managed to setup the printer in the past, but the printer configuration panel no longer works. The issue is still there in 4.8 RC1. I'm using a network printer with IPP.

Instead of the configuration dialog I get a message about missing KCModule. When starting systemsettings from the CLI, I see the traceback at the end of this text.

A quick look at that code shows that getPPD() returns a bool with value False which results in the AttributeError.


Traceback:

----------------------------------

  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 445, in on_tvMainList_cursor_changed
    self.fillPrinterTab(name)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1267, in fillPrinterTab
    self.fillPrinterOptions(name, editablePPD)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1311, in fillPrinterOptions
    ppd.markDefaults()
AttributeError: 'bool' object has no attribute 'markDefaults'
systemsettings(17081)/python (plugin): Error while running factory function for Python plugin:  "system-config-printer-kde/system-config-printer-kde.py" 
Traceback (most recent call last):
  File "<string>", line 18, in kpythonpluginfactory_bridge
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 4398, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 374, in makeui
    self.populateList(start_printer, change_ppd)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 657, in populateList
    self.on_tvMainList_cursor_changed()
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 445, in on_tvMainList_cursor_changed
    self.fillPrinterTab(name)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1267, in fillPrinterTab
    self.fillPrinterOptions(name, editablePPD)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1311, in fillPrinterOptions
    ppd.markDefaults()
AttributeError: 'bool' object has no attribute 'markDefaults'
systemsettings(17081)/python (plugin): Failed to import module 
systemsettings(17081)/kcontrol KCModuleLoader::loadModule: This module has no valid entry symbol at all. The reason could be that it's still using K_EXPORT_COMPONENT_FACTORY with a custom X-KDE-FactoryName which is not supported anymore 
----------------------------------



Reproducible: Always

Steps to Reproduce:
run systemsettings from CLI, click printer configuration

Actual Results:  
panel with message about missing KCModule

Expected Results:  
printer configuration panel
Comment 1 mityi 2012-01-30 19:55:05 UTC
I can confirm this bug. If I add network printer(ipp) printer configuration
panel no works
Comment 2 Del 2012-05-21 20:16:56 UTC
This bug is still present on Kubuntu 12.04 with the latest 4.8.3 updates. Steps to reproduce is simply trying to add a network printer using ipp.

Is this bug a Kubuntu-only bug? Is anybody looking into it? We need to fix this ASAP, it really puts KDE in a bad light.
Comment 3 Christoph Feck 2013-11-23 20:30:32 UTC
"system-config-printer-kde" is no longer maintained and has been replaced with "Print Manager" since KDE 4.10. The new version is a C++ rewrite of the old Python version, and may still lack some features or have some bugs.

If this or another issue still needs to be addressed in KDE 4.10 or newer, please add a comment, or report it for "Print Manager".