dan-da/py2php

SyntaxError: invalid syntax

Opened this issue · 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.

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

How exactly do you run the script?