[gstreamer-bugs] [Bug 634082] New: does not compile if python 3 is default compiler

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Nov 5 07:42:52 PDT 2010

  GStreamer | gst-python | unspecified

           Summary: does not compile if python 3 is default compiler
    Classification: Desktop
           Product: GStreamer
           Version: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-python
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: thijsvermeir at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---

I have python 3 as the default python on my system.

I have 2 problems with this:
* I can't find any configuration option to specify the python version, the only
check that is done is that the python version > 2.3. Looks like it is not
possible to build for a non-default python version (if python2 is also
installed next to python3)
* Build on python 3 does not work.

configure passes but gives some ugly output, compile failes:

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...
checking for python >= 2.3... okay
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
Building against GStreamer core 0.10.30 , ignoring API additions if needed
checking for GST_BASE... yes
checking for GST_CONTROLLER... yes
checking for GST_NET... yes
checking for GST_DP... yes
checking for GST_PLUGINS_BASE... yes
checking for PYGOBJECT... yes
checking for PYGOBJECT_2_12... yes
checking for PYGOBJECT_2_16... yes
checking for libraries required to embed python...   File "<string>", line 1
    import distutils.sysconfig as s; print s.get_python_lib(standard_lib=1)
SyntaxError: invalid syntax

error for build:

make[3]: Entering directory `/home/tvermeir/devel/jhbuild_root/gst-python/gst'
  CC     _gst_la-gstmodule.lo
gstmodule.c:153:1: warning: return type defaults to 'int'
gstmodule.c: In function 'DL_EXPORT':
gstmodule.c:154:1: error: expected declaration specifiers before 'init_gst'
gstmodule.c:417:1: error: expected '{' at end of input
make[3]: *** [_gst_la-gstmodule.lo] Error 1

Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the Gstreamer-bugs mailing list