restricted-manager-kde control module fails to load

Bug #156559 reported by Serhiy Kachaniuk
2
Affects Status Importance Assigned to Milestone
restricted-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

On all my 3 Kubuntu systems upgraded to Gutsy from Feisty, systemsetiings control module for restricted-manager-kde fails to load.
Here is the console output of systemsettings command:

[~]>systemsettings
adding ???????? ???????? /usr/share/applications/kde/restricted-manager-kde.desktop

Pythonize constructor -- pid = 11042
Python interpreter initialized!

Pythonize constructor -- pid = 11042
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_RestrictedManagerKDE
  File "/var/lib/python-support/python2.5/RestrictedManagerKDE.py", line 419, in create_RestrictedManagerKDE
    return RestrictedManagerKDE(parent, name).launch_manager()
  File "/var/lib/python-support/python2.5/RestrictedManagerKDE.py", line 72, in __init__
    RestrictedManagerCommon.__init__(self,args,opts)
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerCommon.py", line 212, in __init__
    self.launch_manager()
  File "/var/lib/python-support/python2.5/RestrictedManagerKDE.py", line 161, in launch_manager
    return self.ManagerWindow(self)
  File "/var/lib/python-support/python2.5/RestrictedManagerKDE.py", line 188, in __init__
    parent.set_title_label(self.label_heading, False)
  File "/var/lib/python-support/python2.5/RestrictedManagerKDE.py", line 111, in set_title_label
    (bold, normal) = RestrictedManagerCommon.title_label(self, in_use)
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerCommon.py", line 242, in title_label
    'these drivers.') % {'os': get_os_name()}
ValueError: unsupported format character ' ' (0x20) at index 103
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_RestrictedManagerKDE
  File "/var/lib/python-support/python2.5/RestrictedManagerKDE.py", line 419, in create_RestrictedManagerKDE
    return RestrictedManagerKDE(parent, name).launch_manager()
  File "/var/lib/python-support/python2.5/RestrictedManagerKDE.py", line 72, in __init__
    RestrictedManagerCommon.__init__(self,args,opts)
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerCommon.py", line 212, in __init__
    self.launch_manager()
  File "/var/lib/python-support/python2.5/RestrictedManagerKDE.py", line 161, in launch_manager
    return self.ManagerWindow(self)
  File "/var/lib/python-support/python2.5/RestrictedManagerKDE.py", line 188, in __init__
    parent.set_title_label(self.label_heading, False)
  File "/var/lib/python-support/python2.5/RestrictedManagerKDE.py", line 111, in set_title_label
    (bold, normal) = RestrictedManagerCommon.title_label(self, in_use)
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerCommon.py", line 242, in title_label
    'these drivers.') % {'os': get_os_name()}
ValueError: unsupported format character ' ' (0x20) at index 103
error: *** runFunction failure
;

When booting from Gutsy liveCD, restricted-manager-kde works ok. Please let me know what additional info i can supply for this bug

Revision history for this message
Andrey Zaitsev (a-zaitsev) wrote :

Thank you for your report!

What locale do you use?

Revision history for this message
Serhiy Kachaniuk (serzholino) wrote :

I use uk_UA.UTF8. Changing locale to en_US.UTF8 helps.
Also helps removing space before second "%(os)s" or renaming %(os)s to something else, e.g. %(a)s in statement at /usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerCommon.py, line 242

Revision history for this message
Alexey Ten (Lynn) (alexeyten) wrote :

Have the same problem with Ubuntu restricted-manager
locale is ru_RU.UTF-8
using command
LANG= sudo restricted-manager
helps

lynn@trash:~$ sudo restricted-manager
Traceback (most recent call last):
  File "/usr/bin/restricted-manager", line 42, in <module>
    rm = RestrictedManager()
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerGtk.py", line 53, in __init__
    RestrictedManagerCommon.__init__(self,args,opts)
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerCommon.py", line 197, in __init__
    self.launch_manager()
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerGtk.py", line 151, in launch_manager
    self.ManagerWindow(self.xml, self.handlers, self)
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerGtk.py", line 209, in __init__
    self.reset_model()
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerGtk.py", line 262, in reset_model
    self.parent.set_title_label(self.xml.get_widget('label_heading'), any_enabled)
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerGtk.py", line 122, in set_title_label
    (bold, normal) = RestrictedManagerCommon.title_label(self, in_use)
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerCommon.py", line 242, in title_label
    'these drivers.') % {'os': get_os_name()}
KeyError: u's'

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.