[gutsy] restricted manager fails to start with TypeError: 'property' object is not callable

Bug #134097 reported by Christian González
6
Affects Status Importance Assigned to Milestone
restricted-manager (Ubuntu)
Incomplete
Undecided
Tommaso R. Donnarumma

Bug Description

Binary package hint: restricted-manager

when i start restricted-manager, nothing happens in GNOME, at commandline output is the following:

christian@gimli:~$ 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 186, 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 208, in __init__
    self.reset_model()
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerGtk.py", line 228, in reset_model
    handlers = sorted(self.handlers.values(), key=lambda x: (x._type, x.description))
  File "/usr/lib/python2.5/site-packages/RestrictedManager/RestrictedManagerGtk.py", line 228, in <lambda>
    handlers = sorted(self.handlers.values(), key=lambda x: (x._type, x.description))
  File "/usr/lib/python2.5/site-packages/RestrictedManager/handlers/lrm_driver.py", line 28, in description
    return DriverHandler.description(self)
TypeError: 'property' object is not callable

Python error?

Revision history for this message
pidgas (pidgas) wrote :

Since this is python, the source code is included. You'll find that if you edit the source. I think this error is generated because the code attempts to call a function that does not exist (DriverHandler.description(self)). The error tells us that DriverHanlder.description is a "property" not a callable function. So, open your favorite editor, go to line 28 of /usr/lib/python2.5/site-packages/RestrictedManager/handlers/lrm_driver.py and change:

return DriverHandler.description(self)

to

return DriverHanlder.description

Make sure not to change the indentation. It matters in python.

Worked for me. Good luck!

Revision history for this message
pidgas (pidgas) wrote :

Sorry, the second sentence in my post is cruft I forgot to delete. It can be disregarded. Essentially, after making the change I describe, the restricted manager came up normally.

Revision history for this message
Christian González (droetker) wrote :

Eh - fine - I hope this will be fixed in the gutsy version as well ;-) ?

Revision history for this message
Tommaso R. Donnarumma (tawmas) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

I have the same here, after the kernel upgrade to 2.6.22-10, including restricted modules. I have the nvidia restricted drivers enabled.

Could you please list the restricted drivers you have enabled, if any?

Changed in restricted-manager:
assignee: nobody → tawmas
status: New → Incomplete
Revision history for this message
Martin Böhm (martin.bohm) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 133218, so it is being marked as such. Please look at the other bug report and put information about restricted modules you used prior to the crash there.

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.