← 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.2-1

---------------
pygobject (3.0.2-1) experimental; urgency=low

  * New upstream release:
    - Allow GBoxed types as property. (LP: #877397)
    - When converting an object with transfer none, make sure the wrapper owns
      a ref. (LP: #874299)
    - Gdk overrides: Unbreak for Gdk-2.0. (LP: #875399)
    - Do union member checks for unions that are parameters.
    - Fix "Returns: (skip)" method calls without (out) arguments.
 -- Martin Pitt <martin.pitt@xxxxxxxxxx>   Sun, 23 Oct 2011 12:54:30 +0200

** Changed in: pygobject (Ubuntu Precise)
       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 Committed
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