Comment 3 for bug 181453

Revision history for this message
Michael Blakeley (mike+ubuntu) wrote :

$ kcmshell displayconfig

Pythonize constructor -- pid = 792
Python interpreter initialized!

Pythonize constructor -- pid = 792
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/displayconfig.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 "/var/lib/python-support/python2.5/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/displayconfig.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

Partial workaround: install python2.5-dev

This gets past the about error message, but hits a new issue that also keeps the display config from working:

Pythonize constructor -- pid = 9650
Python interpreter initialized!

Pythonize constructor -- pid = 9650
*** Error: couldn't find any ServerLayout sections
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1483, in slotSecondMonitorToggled
    self._syncGUIScreen()
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1182, in _syncGUIScreen
    self.resize_slider.setScreen(self.current_screen)
  File "/var/lib/python-support/python2.5/displayconfigwidgets.py", line 46, in setScreen
    self.screensizeslider.setMaxValue(len(screen.getAvailableResolutions())-1)
AttributeError: 'NoneType' object has no attribute 'getAvailableResolutions'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1483, in slotSecondMonitorToggled
    self._syncGUIScreen()
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1182, in _syncGUIScreen
    self.resize_slider.setScreen(self.current_screen)
  File "/var/lib/python-support/python2.5/displayconfigwidgets.py", line 46, in setScreen
    self.screensizeslider.setMaxValue(len(screen.getAvailableResolutions())-1)
AttributeError: 'NoneType' object has no attribute 'getAvailableResolutions'
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_displayconfig
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1698, in create_displayconfig
    return DisplayApp(parent, name)
  File "/var/lib/python-support/python2.5/displayconfig.py", line 448, in __init__
    self._buildGUI()
  File "/var/lib/python-support/python2.5/displayconfig.py", line 512, in _buildGUI
    self.SizePage = SizeOrientationPage(tabcontrol,self.xsetup,self.compact_mode)
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1140, in __init__
    self._syncGUI()
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1149, in _syncGUI
    self._syncGUIScreen()
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1182, in _syncGUIScreen
    self.resize_slider.setScreen(self.current_screen)
  File "/var/lib/python-support/python2.5/displayconfigwidgets.py", line 46, in setScreen
    self.screensizeslider.setMaxValue(len(screen.getAvailableResolutions())-1)
AttributeError: 'NoneType' object has no attribute 'getAvailableResolutions'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_displayconfig
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1698, in create_displayconfig
    return DisplayApp(parent, name)
  File "/var/lib/python-support/python2.5/displayconfig.py", line 448, in __init__
    self._buildGUI()
  File "/var/lib/python-support/python2.5/displayconfig.py", line 512, in _buildGUI
    self.SizePage = SizeOrientationPage(tabcontrol,self.xsetup,self.compact_mode)
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1140, in __init__
    self._syncGUI()
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1149, in _syncGUI
    self._syncGUIScreen()
  File "/var/lib/python-support/python2.5/displayconfig.py", line 1182, in _syncGUIScreen
    self.resize_slider.setScreen(self.current_screen)
  File "/var/lib/python-support/python2.5/displayconfigwidgets.py", line 46, in setScreen
    self.screensizeslider.setMaxValue(len(screen.getAvailableResolutions())-1)
AttributeError: 'NoneType' object has no attribute 'getAvailableResolutions'
error: *** runFunction failure
;