kcmshell4 crashed with AttributeError in createWidget()

Bug #514796 reported by Xavier Besnard
76
This bug affects 11 people
Affects Status Importance Assigned to Milestone
python-qt4 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: kdebase-runtime

ACER 0531h with update version of Lucid with KDE desktop

ProblemType: Crash
Architecture: i386
Date: Sat Jan 30 18:45:01 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/bin/kcmshell4
InstallationMedia: Kubuntu 10.04 "Lucid Lynx" - Alpha i386 (20091210)
Package: kdebase-runtime 4:4.3.95-0ubuntu1
ProcAttrCurrent: unconfined (enforce)
ProcCmdline: /usr/bin/kcmshell4 userconfig --lang fr
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=fr_FR.UTF-8
 LANGUAGE=fr_FR:fr:en_GB:en
ProcVersionSignature: Ubuntu 2.6.32-12.16-generic
SourcePackage: kdebase-runtime
Title: kcmshell4 crashed with AttributeError in createWidget()
Uname: Linux 2.6.32-12-generic i686
UserGroups:

Revision history for this message
Xavier Besnard (xavier-besnard) wrote :
tags: removed: need-duplicate-check
visibility: private → public
affects: kdebase-runtime (Ubuntu) → userconfig (Ubuntu)
Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

It's failing on parsing the UI file, looks like a PyKDE problem.

affects: userconfig (Ubuntu) → kdebindings (Ubuntu)
Revision history for this message
3vi1 (launchpad-net-eternaldusk) wrote :

This looks like the error I see when I try to bring up User Management from System Settings (other items work fine).

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

From bug 521356:
"python-qt4 in /usr/share/pyshared/PyQt4/uic/uiparser.py at line 184 invokes the string method of a Qstring.

But lately, Qstring does not have anymore such method, meaning that python-qt4 in /usr/share/pyshared/PyQt4/uic/uiparser.py breaks on QT 4.6 and on installations of kde 4.4 on ubuntu. For instance, with a kubuntu karmic distro upgraded to kde 4.4 using the instructions on the kubuntu website fails to have a working user-management module in the system settings.

Please have line 184 of python-qt4 in /usr/share/pyshared/PyQt4/uic/uiparser.py

from

bg_name = bg_i18n.string

to

bg_name = str(bg_i18n)"

affects: kdebindings (Ubuntu) → python-qt4 (Ubuntu)
Changed in python-qt4 (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-qt4 - 4.7.0-2ubuntu3

---------------
python-qt4 (4.7.0-2ubuntu3) lucid; urgency=low

  * Add kubuntu_01_fix_uic.diff to fix the ui compiler by not using deprecate
    interfaces of QString (LP: #514796)
 -- Harald Sitter <email address hidden> Sun, 14 Feb 2010 10:05:40 +0200

Changed in python-qt4 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Xavier Besnard (xavier-besnard) wrote : Re:[Bug 514796] Re: kcmshell4 crashed with AttributeError in createWidget()

Yes, That is exactly the case, when I tried to open the User management. If it helps you ... Thanks

Xavier

This looks like the error I see when I try to bring up User Management
from System Settings (other items work fine).

--
kcmshell4 crashed with AttributeError in createWidget()
https://bugs.launchpad.net/bugs/514796
You received this bug notification because you are a direct subscriber
of the bug.

Revision history for this message
exploder91 (d-cosner) wrote :

This bug is also present in Karmic with the KDE 4.4.0 upgrade so I am guessing that the updated python-qt4 - 4.7.0-2ubuntu3 package will make it into the ppa repo as well.

Currently installing the kdeadmin package pulls in kuser, kcron and makes User Manager work from the menu shortcut, only the System Settings shortcut is getting the error and crash.

Revision history for this message
exploder91 (d-cosner) wrote :

Almost forgot, this bug is present in the 64 bit release as well as the 32 bit. Just trying to provide complete information.

Revision history for this message
exploder91 (d-cosner) wrote :

The solution to the User Manager issue is to edit line 184 of python-qt4 in /usr/share/pyshared/PyQt4/uic/uiparser.py

from

bg_name = bg_i18n.string

to

bg_name = str(bg_i18n)

kmb42vt (a LinuxMint forum member), apachelogger (a KDE forum member) came up with and tested this solution. I edited the file and after re-booting the system User Manager is back to perfect working order.

Revision history for this message
Tom (thomasmca) wrote :

This bug is happening to me on Kubuntu 10.10 64bit with Python-qt4 - 4.7.2-0ubuntu1

Revision history for this message
nowardev (nowardev) wrote :

natty alpha 2 too
fixed like said exploder91

Revision history for this message
Oguz Yarimtepe (oguzy) wrote :

I installed Kubuntu 10.04.2 with LVM and Crpto support on my machine. Made the security and package updates. Checked /usr/share/pyshared/PyQt4/uic/uiparser.py, line 184 is already as bg_name = str(bg_i18n).

Installing kdeadmin and reaching kuser from menu shortcut is a solution for now.

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.