You are not logged in.

#1 2011-06-20 23:09:28

roygbiv
Member
Registered: 2011-05-18
Posts: 204

[SOLVED] pypanel-gaps fails to build on syntax error

i'm trying to install pypanel-gaps from the aur with yaourt, but i can't build it because of a syntax error in the file setup.py:

...
==> Building and installing package
==> Making package: pypanel-gaps 2.4-1 (Tue Jun 21 00:59:48 CEST 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found PyPanel-2.4.tar.gz
  -> Found pypanel.patch
==> Validating source files with md5sums...
    PyPanel-2.4.tar.gz ... Passed
    pypanel.patch ... Passed
==> Extracting Sources...
  -> Extracting PyPanel-2.4.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
patching file pypanel
  File "setup.py", line 33
    print "\nPyPanel requires the Python X library -"
                                                    ^
SyntaxError: invalid syntax
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build pypanel-gaps.
==> Restart building pypanel-gaps ? [y/N]
==> -------------------------------------
==> 
...

is this considered a bug? is there a way to edit this file in order to fix the syntax error, when using yaourt? i have these versions of python installed: 2, 2.7, 3, 3.2.

Last edited by roygbiv (2011-06-23 10:20:16)

Offline

#2 2011-06-21 16:07:11

Foucault
Member
From: Athens, Greece
Registered: 2010-04-06
Posts: 214

Re: [SOLVED] pypanel-gaps fails to build on syntax error

Most probably pypanel is a python 2 application. Replace 'python' with 'python2' in both the depends array and within the build function in the PKGBUILD.

Offline

#3 2011-06-23 10:16:04

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: [SOLVED] pypanel-gaps fails to build on syntax error

Thank you. That solved it.

Offline

Board footer

Powered by FluxBB