KDE Printer Configuration applet is broken

Bug #377333 reported by Michael Marley
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
kdebindings (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kdeadmin

The KDE printer configuration dialog is broken (again) It complains about the system-config-printer-kde.py file. It needs an update to be compatible with the newest system-config-printer.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Works fine here with the beta1 backports to Jaunty. (which will be advertised soon once the rest of the overwrite kinks are worked out of them)

Revision history for this message
Michael Marley (mamarley) wrote :

I'm talking about Karmic.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Yeah, the packages are the same.
Anyway, I see the bug. I'll commit a fix to KDE svn in a second here.

Changed in kdeadmin (Ubuntu):
status: New → Fix Committed
Revision history for this message
Michael Marley (mamarley) wrote :

Thanks. Could you also possible post a diff here, so that I can compile a temporary version of the package to use until 4.3 Beta 2 gets released?

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

kdesudo kate /usr/share/kde4/services/system-config-printer-kde.desktop
Then change kcm-spck in the exec line to system-config-printer-kde

Revision history for this message
Michael Marley (mamarley) wrote :

I still get the same error message.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Oh, then run kbuildsycoca4 so that systemsettings picks up the change.

Revision history for this message
Michael Marley (mamarley) wrote :

Still happening.....

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Would you mind posting the log when run from konsole, then, please? It could be that there was more than one issue.

Revision history for this message
Michael Marley (mamarley) wrote :

Here it is:

michael@michaelspc:~$ systemsettings
michael@michaelspc:~$ systemsettings(11692) KIO::DelegateAnimationHandler::setSequenceIndex: 1
systemsettings(11692) KIO::DelegateAnimationHandler::setSequenceIndex: 0
systemsettings(11692) KIO::DelegateAnimationHandler::sequenceTimerTimeout:
systemsettings(11692) KIO::DelegateAnimationHandler::setSequenceIndex: 1
systemsettings(11692) KIO::DelegateAnimationHandler::setSequenceIndex: 0
systemsettings(11692) KIO::DelegateAnimationHandler::sequenceTimerTimeout:
systemsettings(11692) KIO::DelegateAnimationHandler::setSequenceIndex: 1
systemsettings(11692) KIO::DelegateAnimationHandler::setSequenceIndex: 0
systemsettings(11692) KIO::DelegateAnimationHandler::sequenceTimerTimeout:
systemsettings(11692) KIO::DelegateAnimationHandler::setSequenceIndex: 1
systemsettings(11692) KIO::DelegateAnimationHandler::gotNewIcon: 1
Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 76, in <module>
    import dbus.mainloop.qt
ImportError: No module named qt
systemsettings(11692) KIO::DelegateAnimationHandler::sequenceTimerTimeout:

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Ugh, this looks similar to an issue we had in Jaunty. Namely a nasty bug 348704.
Reinstalling python-qt4-dbus should work around this issue for you.

affects: kdeadmin (Ubuntu) → python-qt4 (Ubuntu)
Changed in python-qt4 (Ubuntu):
status: Fix Committed → New
Revision history for this message
Michael Marley (mamarley) wrote :

I reinstalled that package, and the problem still occurs in exactly the same way that it did before.

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 377333] Re: KDE Printer Configuration applet is broken

Believe it or not, that's actually good news (recurrence of the old problem
would have been very troubling).

Revision history for this message
Michael Marley (mamarley) wrote :
Download full text (5.6 KiB)

OK, the python-qt4 package was just updated. The problem still exists, but now there is drastically different output in the console:

michael@michaelspc:~$ systemsettings
michael@michaelspc:~$ systemsettings(4822) KIO::DelegateAnimationHandler::setSequenceIndex: 1
systemsettings(4822) KIO::DelegateAnimationHandler::sequenceTimerTimeout:
systemsettings(4822) KIO::DelegateAnimationHandler::gotNewIcon: 1
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 4003, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 128, in makeui
    self.ui = PyKcm(component_data, parent, self)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 104, in __init__
    uic.loadUi(APPDIR + "/" + "system-config-printer.ui", self)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/__init__.py", line 106, in loadUi
    return loader.DynamicUILoader().loadUi(uifile, baseinstance)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/Loader/loader.py", line 22, in loadUi
    return self.parse(filename)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 690, in parse
    actor(elem)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 538, in createUserInterface
    self.traverseWidgetTree(elem)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 516, in traverseWidgetTree
    handler(self, child)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 320, in createLayout
    self.traverseWidgetTree(elem)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 516, in traverseWidgetTree
    handler(self, child)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 340, in handleItem
    self.traverseWidgetTree(elem)
  File "/usr/lib/pymodules/python2.6...

Read more...

Revision history for this message
Michael Marley (mamarley) wrote :

This is still happening with KDE 4.3 Beta 2. I get exactly the same error message as before.

Revision history for this message
hasi (whynot-nurfuerspam) wrote :

I have a similar problem in 4.3b2 using jaunty (after upgrading from 4.2.2 via backports).
The KDE printer configuration dialog complains as follows:

"The service 'Printer Configuration' does not provide an interface 'KCModule' with keyword 'system-config-printer-kde/kcm-scpk.py'"

It's not bug 348704, as reinstalling python-qt4-dbus does not fix it. Is this a new bug, or could it be the bug discussed here?

Revision history for this message
hasi (whynot-nurfuerspam) wrote :

Interestingly, I don't have a file
/usr/share/kde4/services/system-config-printer-kde.desktop
and there is no file of such name in the entire /usr tree.

Revision history for this message
Jason Straight (jason-jeetkunedomaster) wrote :

That's because it's not in the package, the package only has /usr/share/doc stuff.

Revision history for this message
Michael Marley (mamarley) wrote :

With the latest update for python-qt4, the System Settings printer applet is causing systemsettings to Krash with a segfault. I have attached the crash dump.

Revision history for this message
Michael Marley (mamarley) wrote :

This appears to be completely fixed with the latest python-kde4 package. Can anyone confirm?

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Yes, I do recall an update to specifically address this and it works for me now too.

affects: python-qt4 (Ubuntu) → kdebindings (Ubuntu)
Changed in kdebindings (Ubuntu):
status: New → Fix Released
Revision history for this message
hasi (whynot-nurfuerspam) wrote :

I am fully updated (jaunty, KDE 4.3b2, backport repositories activated), however the printer applet still does not work. I still have the problem described above (post #16, https://bugs.launchpad.net/ubuntu/+source/kdebindings/+bug/377333/comments/16). Can someone from the exerts here have a look at my symptoms and tell me if I have the same bug or a different one? In the latter case, I'd be able to file a new bug.

Revision history for this message
Jason Straight (jason-jeetkunedomaster) wrote :

I don't know how you have a printer config applet at all with jaunty and KDE 4.3b2, that's what I'm running and I don't have one at all.

When I check the contents of package system-config-printer-kde, it's empty except for some /usr/share/doc stuff.

So I'm using the gnome one for now which looks like something that was rejected from windows 1.0 for not being pretty enough.

Revision history for this message
hasi (whynot-nurfuerspam) wrote :

@Jason (LeeJunFan):
OK, now I am a little confused of what the "Printer Config Applet" is. My problem occurs when I go to "systemsettings --> Advanced --> Printer Configuration". Is that not what we are talking about here?

Revision history for this message
Jason Straight (jason-jeetkunedomaster) wrote :

Yes, that's what I was referring to. I am also running Jaunty with 4.3.0b2, and I don't even have a printer applet in KDE.

Revision history for this message
hasi (whynot-nurfuerspam) wrote :

OK, I do have the applet (at least the icon for it)! (Maybe it's because we had different upgrade histories?)
However, when I try to open it, the window says:

"The service 'Printer Configuration' does not provide an interface 'KCModule' with keyword 'system-config-printer-kde/kcm-scpk.py'The factory does not support creating components of the specified type.

Possible reasons:

 o An error occurred during your last KDE upgrade leaving an orphaned control module
 o You have old third party modules lying around.

Check these points carefully and try to remove the module mentioned in the error message. If this fails, consider contacting your distributor or packager."

This symptom is identical to what's reported in Bug #348704. However the reported workaround for this bug 348704 does not work in my case, which suggests that I am having a different problem. That's why I am now looking into this bug (377333). If I have yet a different disease, I'll have to file a new one.

Revision history for this message
GreyGeek (greygeek) wrote :

It's BAAAAACK!!

Yesterday I installed the 08-20-09 snapshot of Kubuntu 9.10 Karmic in a 40GB sda5 partition on a Sony VAIO VGN-FW140E/H with 3GB RAM and a GM45 video chip.

One of my first tasks was to configure the wireless printer. When I opened "Printer Configuration" in Systemsettings the following msg appeared with the printer configuration objects should have appeared:
"The service 'Printer Configuration' does not provide an interface 'KCModule' with keyword 'system-config-printer-kde/kcm-scpk.py'"

It also recommends that an orphaned control module may be responsible or that I have old third party modules lying about.

On a new install?

Revision history for this message
darthanubis (darthanubis) wrote :

Platform Version 4.3.95 (KDE 4.3.95 (KDE 4.4 RC2))

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic

Same issue here.

Revision history for this message
Blackpaw (blackpaw) wrote :

And its back - yet again. Does anyone at ubuntu actually use kubuntu for real work?

kde4-config --version
Qt: 4.7.2
KDE Development Platform: 4.6.5 (4.6.5)
kde4-config: 1.0

systemsettings
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/lindsay/.config/ibus/bus
lindsay@lindsay-kubuntu:~/.kde/share/config$ Traceback (most recent call last):
  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(5403)/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(5403)/python (plugin): Failed to import module
systemsettings(5403)/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

Revision history for this message
Scott Kitterman (kitterman) wrote :

Every day.

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.