Bug#593403: system-config-printer-kde: kcm broken, coding errors

2010-08-18 Thread Reinhard Karcher

Am 17.08.2010 23:37, schrieb Sune Vuorela:

Package: system-config-printer-kde
Version: 4:4.4.5-1
Severity: grave
Justification: renders package unusable

   File 
/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py, 
line 1874, in show_HTTP_Error
 KMessageBox.error(self, i18n(There was an HTTP error: %1., msg), 
i18n('CUPS server error'))
UnboundLocalError: local variable 'msg' referenced before assignment
kcmshell(14621)/python (plugin): Failed to import module
kcmshell(14621)/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



adding a bit of spaces at line 1874 to indent it seems to bring up s-c-p-k, but 
I*m unsure if it is the proper fix.



I think that is the proper fix. It puts the call KMessageBox.error to 
the else branch. Without it it will also be called if the if branch is 
selected and msg is not defined.


Reinhard



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#593403: system-config-printer-kde: kcm broken, coding errors

2010-08-17 Thread Sune Vuorela
Package: system-config-printer-kde
Version: 4:4.4.5-1
Severity: grave
Justification: renders package unusable


Hi

When running kcmshell4 system-config-printer-kde, it fails with a python
backtrace.

$ kcmshell4 system-config-printer-kde
kcmshell(14621)/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 3997, in CreatePlugin
kcm = u.makeui(component_data, widget_parent)
  File 
/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py, 
line 364, in makeui
self.show_HTTP_Error(s)
  File 
/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py, 
line 1874, in show_HTTP_Error
KMessageBox.error(self, i18n(There was an HTTP error: %1., msg), 
i18n('CUPS server error'))
UnboundLocalError: local variable 'msg' referenced before assignment
kcmshell(14621)/python (plugin): Failed to import module 
kcmshell(14621)/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 



adding a bit of spaces at line 1874 to indent it seems to bring up s-c-p-k, but 
I*m unsure if it is the proper fix.

/Sune


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_DK.ISO-8859-15, LC_CTYPE=en_DK.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages system-config-printer-kde depends on:
ii  python-cupsutils  1.0.0-6Python utility modules around the 
ii  python-kde4   4:4.4.5-2  Python bindings for the KDE Develo
ii  python-qt4-dbus   4.7.3-1+b1 DBus Support for PyQt4

system-config-printer-kde recommends no packages.

system-config-printer-kde suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file 
/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py 
(from system-config-printer-kde package)



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org