py2php icon indicating copy to clipboard operation
py2php copied to clipboard

SyntaxError: invalid syntax

Open cja-github opened this issue 6 years ago • 2 comments

Hi,

I'm trying to run this on Windows 10 but get this error:

python py2php converttophp.py File "py2php", line 1426 print "PAREN: " + str(x) ^ SyntaxError: invalid syntax

The arrow is pointing at the " before PAREN.

I can send you my input file by a private method. I don't want to send it to this website.

cja-github avatar Jan 24 '20 12:01 cja-github

It is because of python version. The code is compatible with python2 but the python version you are using is python3

sriteja777 avatar Mar 30 '20 09:03 sriteja777

How exactly do you run the script?

ostheperson avatar Jul 01 '20 19:07 ostheperson