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 791182 - Installing with pip failes with syntax error in configure
Installing with pip failes with syntax error in configure
Status: RESOLVED DUPLICATE of bug 784428
Product: pygobject
Classification: Bindings
Component: general
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2017-12-03 21:16 UTC by konstin
Modified: 2017-12-03 21:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description konstin 2017-12-03 21:16:51 UTC
I tried installing pygobject on python 3.5.3 using `pip install git+https://git.gnome.org/browse/pygobject`. This should work since https://bugzilla.gnome.org/show_bug.cgi?id=767988 is resolved. The build fails with a syntax error though, no matter if I'm using a virtualenv or not.

Full log:

Collecting git+https://git.gnome.org/browse/pygobject
  Cloning https://git.gnome.org/browse/pygobject to /tmp/pip-wcvoc5fs-build
Installing collected packages: pygobject
  Running setup.py install for pygobject ... error
    Complete output from command /home/konsti/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-wcvoc5fs-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-tqlr8po9-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/konsti/venv/include/site/python3.5/pygobject:
    running install
    running build
    aclocal: installing 'm4/glib-2.0.m4' from '/usr/share/aclocal/glib-2.0.m4'
    aclocal: installing 'm4/libtool.m4' from '/usr/share/aclocal/libtool.m4'
    aclocal: installing 'm4/ltoptions.m4' from '/usr/share/aclocal/ltoptions.m4'
    aclocal: installing 'm4/ltsugar.m4' from '/usr/share/aclocal/ltsugar.m4'
    aclocal: installing 'm4/ltversion.m4' from '/usr/share/aclocal/ltversion.m4'
    aclocal: installing 'm4/lt~obsolete.m4' from '/usr/share/aclocal/lt~obsolete.m4'
    aclocal: installing 'm4/pkg.m4' from '/usr/share/aclocal/pkg.m4'
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal --force
    autoreconf: configure.ac: tracing
    autoreconf: running: libtoolize --copy --force
    libtoolize: putting auxiliary files in '.'.
    libtoolize: copying file './ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
    libtoolize: copying file 'm4/libtool.m4'
    libtoolize: copying file 'm4/ltoptions.m4'
    libtoolize: copying file 'm4/ltsugar.m4'
    libtoolize: copying file 'm4/ltversion.m4'
    libtoolize: copying file 'm4/lt~obsolete.m4'
    libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
    autoreconf: running: /usr/bin/autoconf --force
    autoreconf: running: /usr/bin/autoheader --force
    autoreconf: running: automake --add-missing --copy --force-missing
    configure.ac:75: installing './compile'
    configure.ac:48: installing './config.guess'
    configure.ac:48: installing './config.sub'
    configure.ac:46: installing './install-sh'
    configure.ac:46: installing './missing'
    Makefile.am:55: installing './py-compile'
    gi/Makefile.am: installing './depcomp'
    tests/Makefile.am:30: warning: source file '$(srcdir)/gimarshallingtestsextra.c' is in a subdirectory,
    tests/Makefile.am:30: but option 'subdir-objects' is disabled
    automake: warning: possible forward-incompatibility.
    automake: At least a source file is in a subdirectory, but the 'subdir-objects'
    automake: automake option hasn't been enabled.  For now, the corresponding output
    automake: object file(s) will be placed in the top-level directory.  However,
    automake: this behaviour will change in future Automake versions: they will
    automake: unconditionally cause object files to be placed in the same subdirectory
    automake: of the corresponding sources.
    automake: You are advised to start using 'subdir-objects' option throughout your
    automake: project, to avoid future incompatibilities.
    tests/Makefile.am:26: warning: source file '$(GI_DATADIR)/tests/gimarshallingtests.c' is in a subdirectory,
    tests/Makefile.am:26: but option 'subdir-objects' is disabled
    tests/Makefile.am:55: warning: source file '$(GI_DATADIR)/tests/regress.c' is in a subdirectory,
    tests/Makefile.am:55: but option 'subdir-objects' is disabled
    autoreconf: Leaving directory `.'
    /tmp/pip-wcvoc5fs-build/configure: line 2240: syntax error near unexpected token `minor-version'
    /tmp/pip-wcvoc5fs-build/configure: line 2240: `AX_IS_RELEASE(minor-version)'
    Traceback (most recent call last):
  • File "<string>", line 1 in <module>
  • File "/tmp/pip-wcvoc5fs-build/setup.py", line 103 in <module>
    'build_ext': BuildExt,
  • File "/usr/lib/python3.5/distutils/core.py", line 148 in setup
    dist.run_commands()
  • File "/usr/lib/python3.5/distutils/dist.py", line 955 in run_commands
    self.run_command(cmd)
  • File "/usr/lib/python3.5/distutils/dist.py", line 974 in run_command
    cmd_obj.run()
  • File "/home/konsti/venv/lib/python3.5/site-packages/setuptools/command/install.py", line 61 in run
    return orig.install.run(self)
  • File "/usr/lib/python3.5/distutils/command/install.py", line 583 in run
    self.run_command('build')
  • File "/usr/lib/python3.5/distutils/cmd.py", line 313 in run_command
    self.distribution.run_command(command)
  • File "/usr/lib/python3.5/distutils/dist.py", line 974 in run_command
    cmd_obj.run()
  • File "/tmp/pip-wcvoc5fs-build/setup.py", line 59 in run
    cwd=builddir)
  • File "/usr/lib/python3.5/subprocess.py", line 271 in check_call
    raise CalledProcessError(retcode, cmd)     subprocess.CalledProcessError: Command '['/tmp/pip-wcvoc5fs-build/autogen.sh', 'PYTHON=/home/konsti/venv/bin/python3', '--prefix=/tmp/pip-wcvoc5fs-build/build/temp.linux-x86_64-3.5/prefix']' returned non-zero exit status 1
    
    ----------------------------------------
Command "/home/konsti/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-wcvoc5fs-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-tqlr8po9-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/konsti/venv/include/site/python3.5/pygobject" failed with error code 1 in /tmp/pip-wcvoc5fs-build/
Comment 1 Christoph Reiter (lazka) 2017-12-03 21:21:05 UTC
Thanks. You are missing "autoconf-archive" (apt install autoconf-archive)

There are some improvements planned for this use case in bug 789211

*** This bug has been marked as a duplicate of bug 784428 ***
Comment 2 konstin 2017-12-03 21:27:45 UTC
Thanks for the quick response! This does indeed solve this error. Unfortunately the build still fails though because the py3cairo version in my os is too low (1.10.0 vs 1.11.1), but I guess that's really a bug even though it blocks installation on my system.
Comment 3 Christoph Reiter (lazka) 2017-12-03 21:30:44 UTC
If you don't need the newest version, 3.24.1 is the last version working with pycairo 1.10.0