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

Bug 381809

Summary: games-simulation/singularity-0.30c fails to run with Python3
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: New packagesAssignee: Python Gentoo Team <python>
Severity: normal CC: games, slyfox, tdalman
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 415635    
Attachments: patch to ebuild
patch to ebuild
patch to ebuild

Description Chris Mayo 2011-09-04 18:18:08 UTC
Created attachment 285545 [details]
patch to ebuild

If Python3 is the default interpreter singularity-0.30c emerges OK but does not run:

$ singularity 
Traceback (most recent call last):
  File "", line 1, in <module>
    import code.singularity
  File "/usr/share/games/singularity/code/", line 54
    except Exception, reason:
SyntaxError: invalid syntax

Attached patch to the ebuild fixes this for me.
(OK only the games_make_wrapper change is key to this, it also sets a Python dependency and byte-compiles the code).
Comment 1 Chris Mayo 2011-09-04 18:22:01 UTC
Created attachment 285547 [details, diff]
patch to ebuild
Comment 2 Chris Mayo 2011-09-04 22:13:18 UTC
Created attachment 285555 [details, diff]
patch to ebuild
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2011-11-07 08:28:23 UTC
grief 2 years ago this has been sitting
python team, please take it up and change to current python version
Comment 4 Arfrever Frehtes Taifersar Arahesis 2011-11-10 01:48:38 UTC
2 months, not years.

The patch looks mostly correct.
PYTHON_DEPEND="2" instead of PYTHON_DEPEND="2:2.4" is sufficient since 2.4 is the oldest version available in the tree.
python_pkg_setup() should be called after python_set_active_version().
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2011-11-10 04:14:22 UTC
also, games should remain the last item on the inherit line.
Comment 6 Tolga Dalman 2012-12-29 15:00:48 UTC
So, this bug can be closed then ? Singularity development seems to be inactive since 2010. With the attached patch, this issue is fixed, right ?
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2013-06-29 11:34:53 UTC
Pushed as:

> *singularity-0.30c-r1 (29 Jun 2013)
>   29 Jun 2013; Sergei Trofimovich <>
>   +singularity-0.30c-r1.ebuild, singularity-0.30c.ebuild:
>   Ported to python-single-r1 (used funnyboat-1.5-r1 as an example). Added
>   workaround to stable ebuild to run python2 (bug #381809 by Chris Mayo).

Hope I broke less, than fixed.

Thank guys!