Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666670 - games-board/pysolfc-2.4.0 fails on systems with python 2.7 installed
Summary: games-board/pysolfc-2.4.0 fails on systems with python 2.7 installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-21 04:42 UTC by Leif Biberg Kristensen
Modified: 2019-07-29 22:24 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leif Biberg Kristensen 2018-09-21 04:42:21 UTC
see https://forums.gentoo.org/viewtopic-t-1086743.html

My python targets in make.conf:
PYTHON_TARGETS="python2_7 python3_6"
PYTHON_SINGLE_TARGET="python3_6"

eselect python list:
Available Python interpreters, in order of preference:
  [1]   python2.7
  [2]   python3.7
  [3]   python3.4 (uninstalled)
  [4]   python3.6 (fallback)

With this configuration, pysolfc will be built for python 2.7. That won't run, because the package dev-python/random2 which pysolfc depends on, is only built for Python 3.6.

leif@balapapa ~ $ pysol.py
Traceback (most recent call last):
<snipped>
    from pysollib.pysolrandom import constructRandom
  File "/usr/lib64/python2.7/site-packages/pysollib/pysolrandom.py", line 35, in <module>
    "https://pypi.python.org/pypi/random2 using pip or similar.")
ImportError: You need to install https://pypi.python.org/pypi/random2 using pip or similar.	

The problem is easily fixed by forcing pysolfc to build for Python 3.6 by editing /etc/portage/package.use like this:

games-board/pysolfc extra-cardsets PYTHON_TARGETS: -python2_7 python3_6

However, the issue should probably be fixed in the ebuild.
Comment 1 Larry the Git Cow gentoo-dev 2019-07-29 22:24:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a0eaa29b442c711d3a666375188713f8ac2c969

commit 2a0eaa29b442c711d3a666375188713f8ac2c969
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2019-07-29 22:23:18 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2019-07-29 22:24:07 +0000

    games-board/pysolfc: Drop all old versions
    
    Closes: https://bugs.gentoo.org/585124
    Closes: https://bugs.gentoo.org/656194
    Closes: https://bugs.gentoo.org/666670
    Closes: https://bugs.gentoo.org/670046
    Closes: https://bugs.gentoo.org/671836
    Package-Manager: Portage-2.3.69, Repoman-2.3.13
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-board/pysolfc/Manifest                       |  4 --
 .../pysolfc/files/pysolfc-PIL-imports.patch        | 49 ---------------
 games-board/pysolfc/files/pysolfc-pillow-6.patch   | 20 -------
 games-board/pysolfc/pysolfc-2.0-r5.ebuild          | 64 --------------------
 games-board/pysolfc/pysolfc-2.2.0.ebuild           | 69 ---------------------
 games-board/pysolfc/pysolfc-2.4.0-r1.ebuild        | 69 ---------------------
 games-board/pysolfc/pysolfc-2.6.2.ebuild           | 70 ----------------------
 7 files changed, 345 deletions(-)