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

Bug 678168

Summary: dev-python/pypy-bin-7.0.0-r1 - Compiling .../image/usr/lib/pypy2.7/lib-python/2.7/lib2to3/tests/data/py3_test_grammar.py ... File "/usr/lib/pypy2.7/lib-python/2.7/lib2to3/tests/data/py3_test_grammar.py", line 130 x = ... ^ SyntaxError: inval
Product: Gentoo Linux Reporter: Jan Ziak (atomsymbol) <0xe2.0x9a.0x9b>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Jan Ziak (atomsymbol) 2019-02-16 18:00:12 UTC
Created attachment 565564 [details]
build.log

Installation fails.
Comment 1 Jan Ziak (atomsymbol) 2019-02-16 19:03:28 UTC
Cause: /usr/bin/emerge is running under pypy-bin while pypy-bin it is being updated.

Symptom:

$ pypy /usr/bin/emerge
Traceback (most recent call last):
  File "/usr/bin/emerge", line 86, in <module>
    exec(data, new_globals)
  File "<string>", line 42, in <module>
ImportError: No module named portage

Solution 1: Run "/usr/bin/emerge sys-apps/portage" to re-emerge portage, assuming "pypy" is in PYTHON_TARGETS of sys-apps/portage. Avoid running "pypy /usr/bin/emerge ..." until packages are updated from pypy-bin-6.0.0 to pypy-bin-7.0.0.

Solution 2 (hypothetical): Detect that /usr/bin/emerge is running under pypy, refuse to update pypy-bin, and describe the problem to the user who then re-runs /usr/bin/emerge under python2.7 and not under pypy.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-02-03 06:35:09 UTC
It is gone.