Can not explicitly import Gdk-2.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pygobject (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt | ||
Oneiric |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Martin Pitt |
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_
>>> from gi.repository import Gdk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
dynamic_
File "/usr/lib/
overrides_
File "/usr/lib/
SELECTION_
File "/usr/lib/
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
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CheckboxSubmission: d27dbc9ce664752
CheckboxSystem: bb422ca46d02494
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)
Subscribing pitti, maybe he has a clue about this one