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

Bug 547002

Summary: dev-python/pypy-2.5.1 fails to emerge when system implementation is set to Python3 instead of Python2
Product: Gentoo Linux Reporter: ykui <YumekuiNeru>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mgorny, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info '=dev-python/pypy-2.5.1::gentoo

Description ykui 2015-04-18 11:23:27 UTC
Created attachment 401552 [details]
emerge --info '=dev-python/pypy-2.5.1::gentoo

dev-python/pypy-2.5.1:0/2.5 fails if the system implementation of Python is set to Python3, I assume because of the below syntax error using a Python2-style print statement. 

Setting the implementation to Python2 with eselect and trying again, the ebuild successfully installed.

[...]
sphinx-build -b html -d _build/doctrees   . _build/html
Making output directory...
Running Sphinx v1.2.2
sphinx_rtd_theme is not installed

Exception occurred:
  File "/var/tmp/portage/portage/dev-python/pypy-2.5.1/work/pypy-2.5.1-src/pypy/doc/config/generate.py", line 2, in <module>
    from pypy.config import pypyoption, makerestdoc
  File "/var/tmp/portage/portage/dev-python/pypy-2.5.1/work/pypy-2.5.1-src/pypy/config/pypyoption.py", line 337
    print config.getpaths()
               ^
SyntaxError: invalid syntax
The full traceback has been saved in /var/tmp/portage/portage/dev-python/pypy-2.5.1/temp/sphinx-err-d2m0ibak.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
Makefile:53: recipe for target 'html' failed
make: *** [html] Error 1
make: Leaving directory '/var/tmp/portage/portage/dev-python/pypy-2.5.1/work/pypy-2.5.1-src/pypy/doc'
 * ERROR: dev-python/pypy-2.5.1::gentoo failed (compile phase):
 *   emake failed
[...]
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-10-15 08:05:02 UTC
I don't think this should be happening anymore with our python-any-r1 logic but feel free to reopen if you hit it again.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-10-15 09:40:32 UTC

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