After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682422 - Build errors with Python 2.5 and 2.6
Build errors with Python 2.5 and 2.6
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: gobject
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-22 03:40 UTC by Simon Feltman
Modified: 2012-08-23 04:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simon Feltman 2012-08-22 03:40:34 UTC
As noted here: https://bugzilla.gnome.org/show_bug.cgi?id=682320
pygobject should work with python >= 2.5 but there are currently some build errors with these versions:

Python 2.5: make
pygi-info.c:1433:9: error: request for member 'ob_refcnt' in something not a structure or union

Python 2.6: make check
AttributeError: 'tuple' object has no attribute 'major'

I'm sure there might be others after these are fixed but opened this just for initial tracking.
Comment 1 Martin Pitt 2012-08-23 04:54:30 UTC
I fixed the tests for Python 2.6 in 

http://git.gnome.org/browse/pygobject/commit/?id=6123e6f5001ca5eaea18123d8a53525abab31a45

The decorators are not really working, but at least the tests run.

As the build for 2.5 has been broken for ages without anyone noticing or complaining, I bumped configure.ac to require 2.6 as the minimum Python version now.