on xubuntu gutsy 64bit, using nvidia card restricted-manager fails to start

Bug #160960 reported by tuna
4
Affects Status Importance Assigned to Milestone
Restricted Manager
Won't Fix
Undecided
Unassigned

Bug Description

tuna@tunamasiina:~$ sudo restricted-manager
[sudo] password for tuna:
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()}
ValueError: unsupported format character 'k' (0x6b) at index 82
tuna@tunamasiina:~$

Revision history for this message
tuna (avtuunainen) wrote :

The syntax looked a bit funny to me, so I tried moving the ')' to the end of line 242 and it started working. like this:
orginal: 'these drivers.'_*_)_*_ % {'os': get_os_name()}
fixed: 'these drivers.' % {'os': get_os_name()}_*_ ) _*_

I have no idea if it now does what it's supposed to, but, a least it starts.

Revision history for this message
brankovic (brankovi4) wrote :

I had the very same problem on 64bit ubuntu gutsy but with ATI card. Your fix helped, thanks. If it is really a plain typo (so easy to fix) then why not to put fixed package to the repository? I just dont understand, is it so hard to update package.

Revision history for this message
Martin Pitt (pitti) wrote :

restricted-manager has been superseded by 'jockey' in Ubuntu Hardy (a complete redesign and rewrite), and thus this bug is not relevant in Hardy any more.

Changed in restricted-manager:
status: New → Won't Fix
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.