Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 474034

Summary: media-gfx/comix-4.0.3 with python3 - src_install(): File "install.py", line 177 / / print __doc__ / / SyntaxError: invalid syntax
Product: Gentoo Linux Reporter: Alexander Giochalas <agioxalas>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Giochalas 2013-06-21 11:43:10 UTC
I tried to install media-gfx/comix-4.0.3, but the installation failed.

The relevant message was:

 * ERROR: media-gfx/comix-4.0.3 failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_install
 *   environment, line 3196:  Called die
 * The specific snippet of code:
 *       python install.py install --no-mime --dir "${D}"usr || die;
 * 

I found the problem and with a temp fix managed to install it.

The problem was that he installation script had some Python 2.7 print statements without parentheses, but my system (a fresh install, still being ironed out) pointed by default to Python 3.2.
By making the /usr/bin/python link to point to python2.7 the install went OK.

Trying to run comix, I found out that comix itself needs Python 2.7, else it fails with a message about wrong GTK+ and PyGTK versions, so I also changed
its hashbang line.

Sorry if this has already been reported/ fixed or if it has to do with my system (which is nevertheless a fresh install).
In such a case please direct me to correct line of actions.

Thanks,
Alexander
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-21 13:13:12 UTC
(In reply to Alexander Giochalas from comment #0)
> I tried to install media-gfx/comix-4.0.3, but the installation failed.
> 
> The relevant message was:

No, that wasn't the relevant message.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-21 13:15:38 UTC

*** This bug has been marked as a duplicate of bug 363765 ***