"SyntaxError: invalid syntax" for Line 61
eksantrik opened this issue · comments
Hello,
I downloaded the wsdl file from https://[publisher IP]:8443/realtimeservice/services/RisPort?wsdl and placed it along with the python script in the same folder.
I am getting an error when I try to execute the script:
locutus@devparb:~/arda# python3.3 main.py
File "main.py", line 61
print "last phone"
^
SyntaxError: invalid syntax
I am not familiar with python. please advise.
Hi, @eksantrik. I'm not related to this repo, I'm just some person. But...
The script is written in Python version 2. In version 2 you can't print like print "something". You are running Python 3, and in version 3 you must put what you print in parens: print("something"). I haven't played with this script yet, but if you fix all the prints, it might run fine with Python 3. (Or you can run it with Python 2.)