[kde-freebsd] system-config-printer-kde: ImportError: No module named kpushbutton

Andriy Gapon avg at icyb.net.ua
Tue May 25 16:58:58 CEST 2010


Guys,

Printer Configuration panel in KDE4 System Settings doesn't work for me.
If I run it standalone then I get lengthy diagnostics from which I reproduce a
snippet here:
$ kcmshell4 system-config-printer-kde
kcmshell(7466)/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/local/kde4/share/apps/system-config-printer-kde/system-config-printer-kde.py",
line 4004, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
...
  File
"/usr/local/lib/python2.6/site-packages/PyQt4/uic/Loader/qobjectcreator.py", line
52, in search
    self._modules[module] = __import__(module, {}, {}, (cls,))
ImportError: No module named kpushbutton
kcmshell(7466)/python (plugin): Failed to import module
kcmshell(7466)/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

This seems to be an upstream bug described in several reports including this one:
http://bugs.kde.org/198632

I worked around it by simply doing the following:
$ ln -s
/usr/local/kde4/lib/python2.6/site-packages/PyQt4/uic/widget-plugins/kde4.py
/usr/local/lib/python2.6/site-packages/PyQt4/uic/widget-plugins
$ ln -s
/usr/local/kde4/lib/python2.6/site-packages/PyQt4/uic/widget-plugins/kde4.pyc
/usr/local/lib/python2.6/site-packages/PyQt4/uic/widget-plugins

It seems that /usr/local/kde4/lib/python2.6/site-packages is not searched.

This is KDE 4.4.3, of course.
Thanks!
-- 
Andriy Gapon


More information about the kde-freebsd mailing list