Bug 157567

Summary: Kcmshell gets confused in userconfig
Product: [Unmaintained] kcontrol Reporter: Sven Boden <svenboden>
Component: kcmshellAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: echidnaman
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sven Boden 2008-02-10 01:15:53 UTC
Version:            (using KDE 3.5.8)
Installed from:    Ubuntu Packages
OS:                Linux

In Kubuntu Hardy Heron (alpha1 to 4) when you select System Setting/User management (as well in Displays&Monitors and Windows applications) you get the following error message:

The module User Management could not be loaded.

The diagnostics is:
Library files for "libpython2.5.so" not found in paths.

Possible reasons:
  - An error occurred 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 etc.etc.


When you run userconfig from the command line with kcmshell you get the same dialog but more information in the terminal:
Pythonize constructor -- pid = 8592
Python interpreter initialized!

Pythonize constructor -- pid = 8592
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/userconfig.py", line 19, in <module>
    from qt import *
ImportError: /usr/lib/python2.5/site-packages/qt.so: undefined symbol: PyUnicode_Type
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 36, in apport_excepthook
    from cStringIO import StringIO
ImportError: /usr/lib/python2.5/lib-dynload/cStringIO.so: undefined symbol: _Py_ZeroStruct

Original exception was:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/userconfig.py", line 19, in <module>
    from qt import *
ImportError: /usr/lib/python2.5/site-packages/qt.so: undefined symbol: PyUnicode_Type
error: ***failed to import module


And when you run /var/lib/python-support/python2.5/userconfig.py on its own it works.
This last one kind of proofs that kcmshell somehow gets its environment wrong.
Comment 1 Sven Boden 2008-02-10 01:16:34 UTC
More information also in https://bugs.launchpad.net/ubuntu/+source/python-qt3/+bug/179763
Comment 2 Jonathan Thomas 2010-05-27 20:53:32 UTC
This shouldn't be an issue anymore with the KDE4 version of userconfig.