← Back to team overview

desktop-packages team mailing list archive

[Bug 877397] Re: gedit in -proposed breaks snippets plugin

 

Confirmed that it's fixed upstream. Test case:

$ python -c 'from gi.repository import GObject, Gtk; print GObject.property(type=Gtk.TextIter)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.py", line 111, in __init__
    self.type = self._type_from_python(type)
  File "/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.py", line 202, in _type_from_python
    raise TypeError("Unsupported type: %r" % (type_,))
TypeError: Unsupported type: <class 'gi.overrides.Gtk.TextIter'>

$ jhbuild run python -c 'from gi.repository import GObject, Gtk; print GObject.property(type=Gtk.TextIter)'
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
<gobject property (uninitialized) (GtkTextIter)>

Comment 4 points to the actual fix, we should also get
http://git.gnome.org/browse/pygobject/commit/?id=bef8d385 for the
corresponding test case.

** Package changed: gedit (Ubuntu) => pygobject (Ubuntu)

** Changed in: pygobject (Ubuntu)
       Status: New => Triaged

** Changed in: pygobject (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

** Changed in: pygobject (Ubuntu Oneiric)
       Status: New => Triaged

** Bug watch added: GNOME Bug Tracker #660798
   https://bugzilla.gnome.org/show_bug.cgi?id=660798

** Also affects: pygobject via
   https://bugzilla.gnome.org/show_bug.cgi?id=660798
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/877397

Title:
  gedit in -proposed breaks snippets plugin

Status in Python bindings for GObject:
  Unknown
Status in “pygobject” package in Ubuntu:
  Triaged
Status in “pygobject” source package in Oneiric:
  Triaged

Bug description:
  gedit in oneiric-proposed breaks the snippets plugin:

  Traceback (most recent call last):
    File "/usr/lib/gedit/plugins/snippets/__init__.py", line 19, in <module>
      from windowactivatable import WindowActivatable
    File "/usr/lib/gedit/plugins/snippets/windowactivatable.py", line 29, in <module>
      class Activate(Gedit.Message):
    File "/usr/lib/gedit/plugins/snippets/windowactivatable.py", line 31, in Activate
      iter = GObject.property(type=Gtk.TextIter)
    File "/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.py", line 111, in __init__
      self.type = self._type_from_python(type)
    File "/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.py", line 202, in _type_from_python
      raise TypeError("Unsupported type: %r" % (type_,))
  TypeError: Unsupported type: <class 'gi.overrides.Gtk.TextIter'>

  (gedit:3353): libpeas-WARNING **: Error loading plugin 'snippets'

  
  Reverting to gedit 3.2.0-0ubuntu1 resolves the issue.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: gedit 3.2.1-0ubuntu1
  ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
  Uname: Linux 3.0.0-12-generic x86_64
  ApportVersion: 1.23-0ubuntu3
  Architecture: amd64
  Date: Tue Oct 18 08:48:41 2011
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110302)
  SourcePackage: gedit
  UpgradeStatus: Upgraded to oneiric on 2011-08-16 (63 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/pygobject/+bug/877397/+subscriptions


References