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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

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
Comment by Andrea Scarpino (BaSh) - Thursday, 03 February 2011, 08:25 GMT
works for me. Please paste the output of:
$ pacman -Q kdebindings-python python2-qt python2-sip
Comment by Aurelieng (aurelieng) - Thursday, 03 February 2011, 08:29 GMT
kdebindings-python 4.6.0-1
python2-qt 4.8.3-1
python2-sip 4.12.1-1
Comment by Andrea Scarpino (BaSh) - Thursday, 03 February 2011, 08:36 GMT
please attach a file with the output of:
$ kcmshell4 system-config-printer-kde
Comment by Aurelieng (aurelieng) - Thursday, 03 February 2011, 08:47 GMT
kcmshell(18140)/python (plugin): Failed to import module
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
Comment by Andrea Scarpino (BaSh) - Thursday, 03 February 2011, 08:48 GMT
please reinstall python2-qt and try again
Comment by Aurelieng (aurelieng) - Thursday, 03 February 2011, 08:56 GMT
Same error. Could it be related the fact I have three versions of python on this machine ?

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.
Comment by Andrea Scarpino (BaSh) - Thursday, 03 February 2011, 09:01 GMT
both system-config-printer-kde.py and pykdeuic4.py load python2 then should work with different versions of python installed.
Comment by Aurelieng (aurelieng) - Thursday, 03 February 2011, 09:04 GMT
Looks like I am stuck, then. Thank you very much both for your help and your fast replies. Just let me know in this thread if you need more information to solve this bug.
Comment by mark (mmm) - Sunday, 05 February 2012, 11:17 GMT
  • Field changed: Percent Complete (100% → 0%)
happens for me too

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
Comment by mark (mmm) - Sunday, 05 February 2012, 11:41 GMT
sorry devs, i sent a mail to arch-general as soon as i found out.

"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"

Loading...