KDE printer configuration app stopped working on Lucid (TypeError in set_widget_value())

Bug #331192 reported by Michael Marley
140
This bug affects 21 people
Affects Status Importance Assigned to Milestone
kdeadmin (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: system-config-printer-kde

The most recent time I tried to use the KDE printer configuration applet on Kubuntu Jaunty x64, I got the following message (opening it as part of the KDE Control Center or separately):

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

However, printing still works fine with a printer I had already set up.

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

system-config-printer-kde is now part of the official KDE Utilities module. :-)

Anyway, could you run systemsettings from the console and paste the output when you try to open the Printing module? Thanks

Changed in system-config-printer-kde:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Michael Marley (mamarley) wrote :

The following text is dumped to the console when attempting to run the printer applet:

Traceback (most recent call last):
  File "<string>", line 18, in kpythonpluginfactory_bridge
  File "/usr/share/kde4/apps/system-config-printer-kde/kcm-scpk.py", line 3993, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/kcm-scpk.py", line 163, in makeui
    self.newPrinterGUI = np = NewPrinterGUI(self)
  File "/usr/share/kde4/apps/system-config-printer-kde/kcm-scpk.py", line 2084, in __init__
    if not config.DOWNLOADABLE_DRIVER_SUPPORT:
AttributeError: 'module' object has no attribute 'DOWNLOADABLE_DRIVER_SUPPORT'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 77, in apport_excepthook
    pr['PythonArgs'] = '%r' % sys.argv
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 18, in kpythonpluginfactory_bridge
  File "/usr/share/kde4/apps/system-config-printer-kde/kcm-scpk.py", line 3993, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/kcm-scpk.py", line 163, in makeui
    self.newPrinterGUI = np = NewPrinterGUI(self)
  File "/usr/share/kde4/apps/system-config-printer-kde/kcm-scpk.py", line 2084, in __init__
    if not config.DOWNLOADABLE_DRIVER_SUPPORT:
AttributeError: 'module' object has no attribute 'DOWNLOADABLE_DRIVER_SUPPORT'

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

I can confirm this also by the way. I just didn't have an opportunity to do so earlier.
If I would guess I'd assume that some recent system-config-printer-common updates broke this.

Changed in kdeutils:
status: Incomplete → Confirmed
Revision history for this message
Jonathan Riddell (jr) wrote :

Changing to kdeadmin.

Looks like an update of system-config-printer-common broke this.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kdeadmin - 4:4.2.0-0ubuntu4

---------------
kdeadmin (4:4.2.0-0ubuntu4) jaunty; urgency=low

  * Update kubuntu_02_system_config_printer_trunk.diff, LP: #331192
    Update for system-config-printer-common change

 -- Jonathan Riddell <email address hidden> Tue, 24 Feb 2009 15:00:50 +0000

Changed in kdeadmin:
status: Confirmed → Fix Released
Revision history for this message
Michael Marley (mamarley) wrote :

After the release of KDE 4.2.1, and a few other packages, this bug is back. It crashes exactly the same way it did last time, with the same graphical message and the same text dumped to the console.

Changed in kdeadmin:
status: Fix Released → Confirmed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

That's a different bug. Most likely due to the python 2.6 transition.

Changed in kdeadmin:
status: Confirmed → Fix Released
Revision history for this message
Greg Johnson (greg-johnson-saltaire) wrote :

Exception is:
Original exception was:
Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/kcm-scpk.py", line 32, in <module>
    import locale
  File "/usr/lib/python2.5/locale.py", line 167, in <module>
    import re, operator
ImportError: /usr/lib/python2.5/lib-dynload/operator.so: undefined symbol: _Py_ZeroStruct

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

I still have this problem with all updates applied as of today (jaunty/KDE 4.2.1). I had started with alpha5 and continuously applied all updates.
Does this also exist in vanilla alpha6? If yes, I wouldn't mind reinstalling. Is there anything else we can do to get this fixed?

Revision history for this message
Alessandro Ghersi (alessandro-ghersi) wrote :

@hasi
Try to reinstall python-qt4-dbus.

Revision history for this message
nowardev (nowardev) wrote :

i have reinstalled python-qt4-dbus and now IT WORKS!

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

@Alessandro:
Thanks so much, it worked!
--hasi

Revision history for this message
Musthafa Meeran (musthafameeran-deactivatedaccount) wrote :

I am getting the same error in Kubuntu Jaunty Beta !!!
I tried reinstalling python-qt4-dbus, but it didn't help, still getting the error in the Printer Configuration page.
Could you please let me know what are the log files needed and I ll attach the same.
Also, can i re-open this bug or need to report a bug?

Thanks a lot...

Revision history for this message
sabby (sabby) wrote :

I have the same problem as Greg Johnson, running kubuntu 8.10 with kde 4.2.2. This happened recently, must be after upgrade to 4.2.2. Reinstalling python-qt4-dev did nothing for me also. I know not being able to use the printer is annoying so from experience with previous problem sometime I find that installing the dev package install things that are missing, and in this case it worked for me. Installing python-dev package fixed the problem. Obviously, this should not be necessary but until it is fixed this will allow it to work.

Revision history for this message
sabby (sabby) wrote :

In addition to my last post, it might be after 4.2.1 also since I went from 4.2.0 directly to 4.2.2 so I couldn't really tell which on is the culprit.

Revision history for this message
sabby (sabby) wrote :

Sorry in previous post i meant reinstalling python-qt4-*dbus* did nothing for me. Should we open a new bug for this or continue to tack onto this one?

Revision history for this message
Musthafa Meeran (musthafameeran-deactivatedaccount) wrote :

@sabby: thanks a lot.. installing 'python-dev' brought back the printer page for me :)

I am in Ubuntu Intrepid 8.10 with KDE 4.2.2

Revision history for this message
Tyler (tyler-idyle) wrote :

Hello! I'm on Karmic and my printer applet broke even back with Jaunty. I also tried removing/installing python-qt4-dbus but that didn't fix it for me! Here's my terminal output:

tyler@tyler-laptop:~$ systemsettings
tyler@tyler-laptop:~$ Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 41, in <module>
    from PyQt4.QtCore import *
ImportError: No module named QtCore
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 77, in apport_excepthook
    pr['PythonArgs'] = '%r' % sys.argv
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 41, in <module>
    from PyQt4.QtCore import *
ImportError: No module named QtCore

Hope this helps! Thanks a lot!

Revision history for this message
Rafael Carduz Rocha (rafaelcrocha) wrote :

+1 in karmic..

Revision history for this message
Rafael Carduz Rocha (rafaelcrocha) wrote :

I forgot to mention my traceback complains also about utf8 encoding. Brazilian Portuguese system here

rc@rafael-notebook:~$ 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 4004, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 223, in makeui
    special_choice=_("Automatic rotation")),
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 51, in _
    return unicode(i18n(string), "utf-8")
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 4-6: invalid data
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 77, in apport_excepthook
    pr['PythonArgs'] = '%r' % sys.argv
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
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 4004, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 223, in makeui
    special_choice=_("Automatic rotation")),
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 51, in _
    return unicode(i18n(string), "utf-8")
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 4-6: invalid data

Revision history for this message
Matthew Flaschen (matthew-flaschen) wrote :

My situation basically matches Tyler (though I am on Jaunty, and have never installed Karmic). I used update-manager to upgrade from Hardy first to Intrepid, then to Jaunty. I get the terminal output:

systemsettings(6311) MainWindow::selectionChanged: Selected item: "Printer Configuration"
systemsettings(6311) MainWindow::selectionChanged: Comment: "Configure local and remote Printers"
systemsettings(6311) MainWindow::selectionChanged: Needs root privs: false
Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/kcm-scpk.py", line 41, in <module>
    from PyQt4.QtCore import *
ImportError: No module named PyQt4.QtCore

and the window displays:

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:

*An error occured during your last KDE upgrade leaving an orphaned control module
*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.

I have tried apt-get reinstalling multiple packages, including:

system-config-printer-common
kdeadmin
python-qt4-dbus
system-config-printer-kde

Revision history for this message
Matthew Flaschen (matthew-flaschen) wrote :

I just fixed this for myself by removing unpackaged python executables I built from source, then reinstalling python and python-minimal.

Revision history for this message
Commat (commat) wrote :

Definitively is a localization bug, if I do:

LC_ALL="en_EN" systemsettings

the module loads correctly in my spanish locale.

Karmic full-upgraded from Alpha-3

Revision history for this message
Commat (commat) wrote :

How to fix it.

Edit file:
 /usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py

Go to line 223 and ...

Replace -> special_choice=_("Automatic rotation")),
 by -> special_choice=i18n("Automatic rotation")),

It works for me.

Revision history for this message
Alex Limoges (alexlimoges) wrote :

Hi,

I also encountered this bug on latest Jaunty with KDE 4.2.1.

I managed to get this problem resolved by reinstalling kdeadmin and python-qt4-dbus, using the "aptitude reinstall" command.

Thanks for the help !

Revision history for this message
vsuarez (vsuarez) wrote :

Commat fix worked in my computer (KDE 4.3.2, Spanish locale).

Revision history for this message
Babstar (debian-lists) wrote :

Same problem with a fresh install of Karmic, aptitude reinstall python-qt4-dbus fixed the problem.

Revision history for this message
aexl (aexl) wrote :

fixed on my jaunty machine with
sudo apt-get --reinstall install python-qt4-dbus

Revision history for this message
Michael Marley (mamarley) wrote : Re: KDE printer configuration app stopped working on Lucid

Its back!

This time, on Lucid.

Changed in kdeadmin-kde4 (Ubuntu):
status: Fix Released → Confirmed
summary: - KDE printer configuration app stopped working on Jaunty
+ KDE printer configuration app stopped working on Lucid
Revision history for this message
BlCa (blca) wrote :

Iv'e seen it too on lucid
The error message looks like this:

systemsettings(22845)/kutils (KCModuleProxy) KCModuleProxyPrivate::loadModule: Module not already loaded, loading module "Printer Configuration" from library "kpythonpluginfactory" using symbol "kpythonpluginfactory"
systemsettings(22845)/python (plugin) KPythonPluginFactory::KPythonPluginFactory: KPythonPluginFactory::KPythonPluginFactory()
systemsettings(22845)/python (plugin) KPythonPluginFactory::initialize: Initializing Python interpreter.
systemsettings(22845)/python (plugin) KPythonPluginFactory::initialize: Succesfully initialized Python interpreter.
systemsettings(22845)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface: KCModule
systemsettings(22845)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code: "system-config-printer-kde/system-config-printer-kde.py"
systemsettings(22845)/python (plugin) KPythonPluginFactory::create: Path to plugin code is: "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py"
systemsettings(22845)/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 4004, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 217, in makeui
    self.ui.btnJOResetCopies),
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 117, in __init__
    self.reinit (None)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 155, in reinit
    self.set_widget_value (self.system_default)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 178, in set_widget_value
    raise NotImplemented
TypeError: exceptions must be classes or instances, not NotImplementedType
systemsettings(22845)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface: KCModule
systemsettings(22845)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code: ""
systemsettings(22845)/python (plugin) KPythonPluginFactory::create: Path to plugin code is: "/home/yann/.kde/share/apps/"
systemsettings(22845)/python (plugin): Failed to import module
systemsettings(22845)/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
3vi1 (launchpad-net-eternaldusk) wrote :

I can confirm also seeing this on Lucid. My traceback appears to point to the same cause as BICa's.

Revision history for this message
Bruce Miller (brm0423) wrote :
Download full text (3.3 KiB)

I get this traceback from Lucid alpha, last updated 2010-01-01:

bruce@Herodotus:~$ kcmshell4 system-config-printer-kde
kcmshell(3577)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-bruce/ksycoca4"
kcmshell(3577)/kutils (KCMultiDialog) KCMultiDialog::addModule: "Printer Configuration"
kcmshell(3577)/kutils (KCModuleProxy) KCModuleProxyPrivate::loadModule: Module not already loaded, loading module "Printer Configuration" from library "kpythonpluginfactory" using symbol "kpythonpluginfactory"
kcmshell(3577)/python (plugin) KPythonPluginFactory::KPythonPluginFactory: KPythonPluginFactory::KPythonPluginFactory()
kcmshell(3577)/python (plugin) KPythonPluginFactory::initialize: Initializing Python interpreter.
kcmshell(3577)/python (plugin) KPythonPluginFactory::initialize: Succesfully initialized Python interpreter.
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface: KCModule
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code: "system-config-printer-kde/system-config-printer-kde.py"
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: Path to plugin code is: "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py"
kcmshell(3577)/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 4004, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 217, in makeui
    self.ui.btnJOResetCopies),
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 117, in __init__
    self.reinit (None)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 155, in reinit
    self.set_widget_value (self.system_default)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 178, in set_widget_value
    raise NotImplemented
TypeError: exceptions must be classes or instances, not NotImplementedType
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface: KCModule
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code: ""
kcmshell(3577)/python (plugin) KPythonPluginFactory::create: Path to plugin code is: "/home/bruce/.kde/share/apps/"
kcmshell(3577)/python (plugin): Failed to import module
kcmshell(3577)/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(3577)/kutils (KCMultiDialog) KCMultiDialog::addModule: adding KCM "Printer Configuration" at the top level
kcmshell(3577)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_slotCurrentPageChanged:
kcmshell(3577)/kutils (KCMultiDialog) KCMultiDialogPrivate::_k_dialogC...

Read more...

Revision history for this message
Bruce Miller (brm0423) wrote :

This would appear to be the same bug as (or at least closely related to) bug 209379 in the KDE Bug Tracker

Revision history for this message
masked_muchacho (ssj-timbaas) wrote :

Dito for me.....

tim@homebox:~$ kcmshell4 system-config-printer-kde
kcmshell(21340)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-tim/ksycoca4"
kcmshell(21340)/kutils (KCMultiDialog) KCMultiDialog::addModule: "Printer Configuration"
kcmshell(21340)/kutils (KCModuleProxy) KCModuleProxyPrivate::loadModule: Module not already loaded, loading module "Printer Configuration" from library "kpythonpluginfactory" using symbol "kpythonpluginfactory"
kcmshell(21340)/python (plugin) KPythonPluginFactory::KPythonPluginFactory: KPythonPluginFactory::KPythonPluginFactory()
kcmshell(21340)/python (plugin) KPythonPluginFactory::initialize: Initializing Python interpreter.
kcmshell(21340)/python (plugin) KPythonPluginFactory::initialize: Succesfully initialized Python interpreter.
kcmshell(21340)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface: KCModule
kcmshell(21340)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code: "system-config-printer-kde/system-config-printer-kde.py"
kcmshell(21340)/python (plugin) KPythonPluginFactory::create: Path to plugin code is: "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py"
kcmshell(21340)/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 4004, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 217, in makeui
    self.ui.btnJOResetCopies),
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 117, in __init__
    self.reinit (None)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 155, in reinit
    self.set_widget_value (self.system_default)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 178, in set_widget_value
    raise NotImplemented
TypeError: exceptions must be classes or instances, not NotImplementedType
kcmshell(21340)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface: KCModule
kcmshell(21340)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code: ""
kcmshell(21340)/python (plugin) KPythonPluginFactory::create: Path to plugin code is: "/home/tim/.kde/share/apps/"
kcmshell(21340)/python (plugin): Failed to import module
kcmshell(21340)/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
mcNisse (johan-erlands) wrote :

I'm having this problem with 4.4 rc1 on karmic.
But I solved it by patching /usr/share/kde4/apps/system-config-printer-kde/options.py
For me it was that one spinner had a new type. KIntSpinBox that was unhandled...

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

mcNisse, your suggestion did not work for me.

Revision history for this message
mcNisse (johan-erlands) wrote :

I have tested it some more, and it doesn't really work for me either. The frame is showing but I still get some errors like this:

Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 424, in on_tvMainList_cursor_changed
    self.fillPrinterTab(name)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1147, in fillPrinterTab
    option.reinit (value, supported=supported)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 152, in reinit
    if original_value != self.get_widget_value():
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 204, in get_widget_value
    raise NotImplemented
TypeError: exceptions must be classes or instances, not NotImplementedType

I think it is because options.py cannot handle the widgets used.

Revision history for this message
Ivan Cheremnov (hattab) wrote :

This patch worked for me on lucid with KDE SC 4.4 RC1.

Revision history for this message
kiloxxx (kiloxxx) wrote :

I tried Ivan's mcNisse' patch on karmic with KDE SC 4.4 RC1 and it partly worked: I could see the configuration window, but I could not enter printers properties. To see and change them I have to comment out also line 204 in options.py ("raise NotImplemented"). Now it works!

Revision history for this message
kiloxxx (kiloxxx) wrote :

As far as the previous message is concerned: the patch I've tried is mcNisse's one. I've also tried Ivan's one, but it worked only at the first attempt to enter printer settings: going back to system settings and again to printers' ones opened the error window.

Revision history for this message
mcNisse (johan-erlands) wrote :

I've managed to get it to work even better ;)

I have my patch and then I changed a line in options.py in this class:
class OptionSelectOne(Option):
...
self.selector = QComboBox(self)
to
self.selector = QComboBox()

I have a problem that it thinks that I have changed a value. But it might work better with Ivan Cheremnov patch...

Revision history for this message
meisterplanlos (meisterplanlos) wrote :

Thanx mcNisse. Your patch and the change of the constructor worked for me like a charm.

Revision history for this message
meisterplanlos (meisterplanlos) wrote :

PS: under Kubuntu Lucid

Revision history for this message
nowardev (nowardev) wrote :

here it's too

but i have used my personal method to set my printer -.- just because my printer it's not a well supported printer

http://nowardev.wordpress.com/2009/09/09/hp-fucking-photosmart-7762/

like you can seee i have set browsing localhost:631
and then editing the configuration
kdesudo kate /etc/cups/printers.conf

 file and using

lpoptions -d “hp_photosmart_7700_series”

to set like default printer...

Revision history for this message
BlCa (blca) wrote :

Unsurprisingly, it's still broken in KDE4.4rc2.
Isn't because package kdebindings hasn't been updated since version 4.3.2 ?

Revision history for this message
Bruno Santos (bsantos) wrote :

In Karmic, 4.4rc2 gives me this:

RuntimeError: the sip module implements API v7.0 but the PyKDE4.kdecore module requires API v6.0

Could it be that python-kde4 needs updating? A new version isn't available on the kubuntu repository.

summary: - KDE printer configuration app stopped working on Lucid
+ KDE printer configuration app stopped working on Lucid (TypeError in
+ set_widget_value())
Revision history for this message
man.vvip (steven-b-007) wrote :

I also have this problem on Karmic 4.4rc2

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

It's working for me since the upgrade from 4.4rc2 to 4.4release (karmic 32bit)

Revision history for this message
Bruce Miller (brm0423) wrote : Re: [Bug 331192] Re: KDE printer configuration app stopped working on Lucid (TypeError in set_widget_value())

I agree that the problem appears to have been fixed with the release of KDE 4.4.0

Revision history for this message
BlCa (blca) wrote :

It's fixed since KDE4.4rc3.

Changed in kdeadmin-kde4 (Ubuntu):
status: Confirmed → Fix Released
affects: kdeadmin-kde4 (Ubuntu) → kdeadmin (Ubuntu)
Revision history for this message
Prabu (arpaham-br) wrote :

Hi everybody, Im having the same problem with Debian Squeeze pt_BR.UTF-8 locale, and checking suggestion of post #24 above (by Commat) I was also able to fix the problem.
I did the same, but at a different point of the script.

on line # 46 replace
 return unicode(i18n(string), "utf-8")
by
 return unicode(i18n(string))

(before doing it I tryed other suggestions less intrusive like reinstalling some python packages, but nothing worked until I changed the script). It seems that this issue is already fixed in Debian Sid(unstable), but is not available yet for Squeeze(testing).

Revision history for this message
alvadoraemon (alvadoraemon) wrote :

Hello to everybody.

My system is Kubuntu 9.10 32 bit, updated from 9.04; KDE packages are from kde 4.4.2 PPA. All the modifications from the posts above were in the python files, and my locale is es_ES.UTF8.

First, I installed a network printer; after this, I tried to view the printer properties from the list, and the system did nothing. Then I tried to run systemsettings from command line, with sudo; when selecting my printer from the list, I obtained this error:

Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 424, in on_tvMainList_cursor_changed
    self.fillPrinterTab(name)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1174, in fillPrinterTab
    editable=editable)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1655, in add_job_option
    self.option_changed)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 66, in OptionWidget
    return OptionSelectOne(name, v, s, on_change)
  File "/usr/share/kde4/apps/system-config-printer-kde/options.py", line 321, in __init__
    self.selector = QComboBox(self)
TypeError: QComboBox(QWidget parent=None): argument 1 has unexpected type 'instance'

Error messages say "self" isn't an instance of the right class - sorry for my poor Ptython :-P -, so I tried the imports from the patch above and ran again systemsettings from the cli... But then Python didn't "recognize" KIntSpinBox and throws and error in the console.

After this I installed the CUPS PDF printer and I can see teh properties of this one; then i select the problematic printer and then
i can see some of the properties, but the driver is the one from PDF printer. In the cli, the error above appears at the start of printer config module.

My Python skills are very low, and I don't know what to do... Reinstall some PyQT or PyKDE packages? Some programming magic? Or i must wait to Lucid final?

Revision history for this message
Carybielenberg (cary-bielenberg) wrote :

Is broken again in Maverick 64bit

Revision history for this message
Jeff Burns (admiraljkb) wrote :

Ran into it with 10.04 and KDE SC 4.5 Beta 2 backport.

Revision history for this message
Zane (zanetu) wrote :

Same issue. Kubuntu 10.04 with KDE v4.4.2.

Changed in kdeadmin (Ubuntu):
status: Fix Released → New
Revision history for this message
Victor Tzougrakis (victz) wrote :

Same here on Kubuntu 10.04 64bit with KDE 4.5 RC1

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Maverick:

 systemsettings(32554)/python (plugin): Failed to import module
Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 64, in <module>
    import cupsutils.ppds
ImportError: No module named cupsutils.ppds
systemsettings(32554)/python (plugin): Failed to import module
systemsettings(32554)/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

tags: added: patch
Revision history for this message
Rohan Garg (rohangarg) wrote :

Hi
This does seem to be a issue,ill look into it

Changed in kdeadmin (Ubuntu):
status: New → In Progress
Rohan Garg (rohangarg)
Changed in kdeadmin (Ubuntu):
assignee: nobody → Rohan Garg (rohangarg)
Changed in kdeadmin (Ubuntu):
status: In Progress → Fix Released
assignee: Rohan Garg (rohangarg) → nobody
Revision history for this message
Rohan Garg (rohangarg) wrote :

Hi
I tried to fix the package with a reformatted version of your patch ( attached with this comment ).But it seems it still doesnt fix the issue, feel free to attach more patches so that this can be fixed.Thanks!

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

That's because this bug is not what has things broken in maverick. The maverick crash on startup is being tracked at bug 591980.

Revision history for this message
Myke Tux (tux-h) wrote :

For reference, got the same error here (12.04 Precise) and found a solution at bug 763369

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.