Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678168 - 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
Summary: dev-python/pypy-bin-7.0.0-r1 - Compiling .../image/usr/lib/pypy2.7/lib-python...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-16 18:00 UTC by Jan Ziak (atomsymbol)
Modified: 2020-02-03 06:35 UTC (History)
0 users

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


Attachments
build.log (dev-python:pypy-bin-7.0.0-r1:20190216-174013.log,12.18 KB, text/plain)
2019-02-16 18:00 UTC, Jan Ziak (atomsymbol)
Details

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