user3817118
user3817118

Reputation: 33

What argument(s) to translate pypy3 am I missing?

Trying to translate pypy3 on Ubuntu 14.04. I've followed the instructions here: http://pypy.readthedocs.org/en/latest/getting-started-python.html#installation, but I am getting an error.

pypy ../../rpython/bin/rpython -O2 --sandbox targetpypystandalone.py gives me

File "../../rpython/bin/rpython", line 17
print __doc__
     ^
SyntaxError: invalid syntax

Looking at the file rpython/bin/rpython I see an if statement that I seem to be hitting

if len(sys.argv) == 1:
    print __doc__
    sys.exit(1)

What arguments am I not passing that I am supposed to be?

Upvotes: 3

Views: 369

Answers (1)

Armin Rigo
Armin Rigo

Reputation: 12900

The bin/rpython toolchain is written in Python 2. You need to run it with either CPython 2 or (recommended) PyPy 2. You can't use CPython 3 or PyPy 3 to run translation.

Upvotes: 5

Related Questions