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 639271 - glib-introspection configure fail when python3 is default
glib-introspection configure fail when python3 is default
Product: gobject-introspection
Classification: Platform
Component: general
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks: 684103
Reported: 2011-01-12 01:22 UTC by Carlos Eduardo Rodrigues Diógenes
Modified: 2015-02-07 17:01 UTC
See Also:
GNOME target: 3.8
GNOME version: ---

Description Carlos Eduardo Rodrigues Diógenes 2011-01-12 01:22:05 UTC
When trying to build gnome-shell with jhbuild I get the following from the configure script:

checking whether Python support is requested... checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 3.1
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python3.1/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.1/site-packages
checking for headers required to compile python extensions...   File "<string>", line 1
    import sys; print sys.prefix
SyntaxError: invalid syntax
  • File "<string>", line 1
    import sys; print sys.exec_prefix
SyntaxError: invalid syntax
not found
configure: error: Python headers not found

I guess that the problem is with the following macro: AM_CHECK_PYTHON_HEADERS(,AC_MSG_ERROR([Python headers not found])), but I don't know if this is an issue for glib-introspection or autotools, so I'm reporting it here.
Comment 1 Martin Pitt 2012-12-17 13:47:26 UTC
This has been fixed ages ago in commit 0f923410a4106fc8e2c67ef7515e7f23a344121a.
Comment 2 André Klapper 2015-02-07 17:01:44 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]