gedit's "codecomment" raises a KeyError since the recent update

Bug #1146567 reported by Sebastien Bacher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pygobject
Fix Released
Critical
pygobject (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Running gedit on current raring with gedit-plugins installed and "codecomment" activated gives those errors:

  File "/usr/lib/gedit/plugins/codecomment.py", line 24, in <module>
    from gi.repository import GObject, Gtk, GtkSource, Gedit
  File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 68, in load_module
    dynamic_module._load()
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 291, in _load
    overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gedit.py", line 74, in <module>
    @override(Gedit.debug_plugin_message)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/__init__.py", line 56, in override
    registry.register(type_)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/__init__.py", line 48, in register
    self[override_class] = override_class
  File "/usr/lib/python2.7/dist-packages/gi/overrides/__init__.py", line 35, in __setitem__
    raise KeyError('You have tried to modify the registry outside of the overrides module. This is not allowed')
KeyError: 'You have tried to modify the registry outside of the overrides module. This is not allowed'

(gedit:16285): libpeas-WARNING **: Error loading plugin 'codecomment'

Martin Pitt (pitti)
Changed in pygobject (Ubuntu):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pygobject - 3.7.91.1-0ubuntu1

---------------
pygobject (3.7.91.1-0ubuntu1) raring; urgency=low

  * New upstream release:
    - Bring back @override for functions. Fixes GEdit plugins. (LP: #1146567)
 -- Martin Pitt <email address hidden> Tue, 05 Mar 2013 12:32:09 +0100

Changed in pygobject (Ubuntu):
status: In Progress → Fix Released
Changed in pygobject:
importance: Unknown → Critical
status: Unknown → Fix Released
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.