← Back to team overview

desktop-packages team mailing list archive

[Bug 875399] Re: Can not explicitly import Gdk-2.0

 

This bug was fixed in the package pygobject - 3.0.0-0ubuntu3

---------------
pygobject (3.0.0-0ubuntu3) oneiric-proposed; urgency=low

  * Add 00git_allow_gboxed_properties.patch: Add the GBoxed type as valid type
    to the gobject property helper. This fixes the "snippets" gedit plugin.
    Patch taken from upstream git head.  (LP: #877397)
  * Add 00git_gboxed_property_test.patch: Corresponding test case. Taken from
    upstream git head.
  * Add 00git_gdk2_overrides_atom_intern.patch: Fix Gdk override to also work
    for Gdk 2.0. Patch also pushed to upstream git. (LP: #875399)
 -- Martin Pitt <martin.pitt@xxxxxxxxxx>   Wed, 19 Oct 2011 09:05:09 +0200

** Changed in: pygobject (Ubuntu Oneiric)
       Status: Fix Committed => Fix Released

-- 
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/875399

Title:
  Can not explicitly import Gdk-2.0

Status in “pygobject” package in Ubuntu:
  Fix Released
Status in “pygobject” source package in Oneiric:
  Fix Released
Status in “pygobject” source package in Precise:
  Fix Released

Bug description:
  The overrides in pygobject for Gdk use the Gdk.atom_intern function,
  which was not correctly exported in GDK 2.0, which causes the import
  to fail:

  evan@caron:~$ python
  Python 2.7.2+ (default, Oct  4 2011, 20:06:09) 
  [GCC 4.6.1] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import gi
  >>> gi.require_version('Gdk', '2.0')
  >>> from gi.repository import Gdk
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 76, in load_module
      dynamic_module._load()
    File "/usr/lib/python2.7/dist-packages/gi/module.py", line 224, in _load
      overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
    File "/usr/lib/python2.7/dist-packages/gi/overrides/Gdk.py", line 296, in <module>
      SELECTION_PRIMARY = Gdk.atom_intern('PRIMARY', True)
    File "/usr/lib/python2.7/dist-packages/gi/module.py", line 105, in __getattr__
      self.__name__, name))
  AttributeError: 'gi.repository.Gdk' object has no attribute 'atom_intern'

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: python-gobject 3.0.0-0ubuntu2
  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
  CheckboxSubmission: d27dbc9ce66475289526ca4b283ec487
  CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
  Date: Sat Oct 15 17:44:24 2011
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
  SourcePackage: pygobject
  UpgradeStatus: Upgraded to oneiric on 2011-09-18 (27 days ago)

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


References