FS#22732 - [kdeadmin-system-config-printer-kde] KCModule error with Python 3
Attached to Project:
Arch Linux
Opened by Aurelieng (aurelieng) - Thursday, 03 February 2011, 03:56 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 05 February 2012, 12:34 GMT
Opened by Aurelieng (aurelieng) - Thursday, 03 February 2011, 03:56 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 05 February 2012, 12:34 GMT
|
Details
Description:
When I go to System Settings and click on Printer Configuration, I get following error: "The service 'Printer Configuration' does not provide an interface 'KCModule' with keyword 'system-config-printer-kde/system-config-printer-kde.py' The factory does not support creating components of the specified type." Additional info: kdeadmin-system-config-printer-kde 4.6.0-1 kdelibs 4.6.0-1 Steps to reproduce: Just open system-settings in KDE and click on Printer Configuration |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Sunday, 05 February 2012, 12:34 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments
Sunday, 05 February 2012, 12:34 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments
$ pacman -Q kdebindings-python python2-qt python2-sip
python2-qt 4.8.3-1
python2-sip 4.12.1-1
$ kcmshell4 system-config-printer-kde
Traceback (most recent call last):
File "/usr/share/apps/system-config-printer-kde/system-config-printer-kde.py", line 41, in <module>
from PyQt4.QtCore import *
ImportError: No module named PyQt4.QtCore
kcmshell(18140)/python (plugin): Failed to import module
kcmshell(18140)/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
pacman -Q python python2 python26
python 3.1.3-2
python2 2.7.1-4
python26 2.6.6-1
Thanks a lot for your help.
info:
$ pacman -Q kdebindings-python python2-qt python2-sip
kdebindings-python 4.8.0-1
error: package 'python2-qt' was not found
python2-sip 4.13.1-1
[marek@beruska ~]$ yaourt python2-qt
1 extra/python2-pyqt 4.9-2 [installed]
$kcmshell4 system-config-printer-kde
kcmshell(13745)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/tmp/kdecache-marek/ksycoca4"
kcmshell(13745)/kutils (KCMultiDialog) KCMultiDialog::addModule: "Printer Configuration"
kcmshell(13745)/kutils (KCModuleProxy) KCModuleProxyPrivate::loadModule: Module not already loaded, loading module "Printer Configuration" from library "kpythonpluginfactory" using symbol "kpythonpluginfactory"
kcmshell(13745)/python (plugin) KPythonPluginFactory::KPythonPluginFactory: KPythonPluginFactory::KPythonPluginFactory()
kcmshell(13745)/python (plugin) KPythonPluginFactory::initialize: Initializing Python interpreter.
kcmshell(13745)/python (plugin) KPythonPluginFactory::initialize: Succesfully initialized Python interpreter.
kcmshell(13745)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface: KCModule
kcmshell(13745)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code: "system-config-printer-kde/system-config-printer-kde.py"
kcmshell(13745)/python (plugin) KPythonPluginFactory::create: Path to plugin code is: "/usr/share/apps/system-config-printer-kde/system-config-printer-kde.py"
kcmshell(13745)/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/apps/system-config-printer-kde/system-config-printer-kde.py", line 4398, in CreatePlugin
kcm = u.makeui(component_data, widget_parent)
File "/usr/share/apps/system-config-printer-kde/system-config-printer-kde.py", line 173, in makeui
encryption=encryption)
File "/usr/share/apps/system-config-printer-kde/authconn.py", line 168, in __init__
self._connect ()
File "/usr/share/apps/system-config-printer-kde/authconn.py", line 200, in _connect
encryption=self._encryption)
RuntimeError: failed to connect to server
kcmshell(13745)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface: KCModule
kcmshell(13745)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code: ""
kcmshell(13745)/python (plugin) KPythonPluginFactory::create: Path to plugin code is: "/home/marek/.kde4/share/apps/"
kcmshell(13745)/python (plugin): Failed to import module
kcmshell(13745)/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
kcmshell(13745)/kutils (KCMultiDialog) KCMultiDialog::addModule: adding KCM "Printer Configuration" at the top level
kcmshell(13745)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_slotCurrentPageChanged:
kcmshell(13745)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_clientChanged:
kcmshell(13745)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_clientChanged:
kcmshell(13745)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_dialogClosed:
kcmshell(13745)/python (plugin) KPythonPluginFactory::~KPythonPluginFactory: KPythonPluginFactory::~KPythonPluginFactory()
Thaks for any hints
"I reopened the mentioned bug in bugzilla as I had exactly the same problem..
Just found solution now - that happens when cups is not running.
So
sudo /etc/rc.d/cupsd restart solves the issue.
Please ignore my reopen request and maybe add this solution to the bug just FTR.
Bye"