Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381809 - games-simulation/singularity-0.30c fails to run with Python3
Summary: games-simulation/singularity-0.30c fails to run with Python3
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
Depends on:
Blocks: 415635
  Show dependency tree
Reported: 2011-09-04 18:18 UTC by Chris Mayo
Modified: 2013-06-29 11:34 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

patch to ebuild (singularity-0.30c.ebuild-python.patch,1.19 KB, text/plain)
2011-09-04 18:18 UTC, Chris Mayo
patch to ebuild (singularity-0.30c.ebuild-python.patch,1.19 KB, patch)
2011-09-04 18:22 UTC, Chris Mayo
Details | Diff
patch to ebuild (singularity-0.30c.ebuild-python.patch,1.25 KB, patch)
2011-09-04 22:13 UTC, Chris Mayo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!