Getting an error while running this program

Started by
2 comments, last by Alberth 7 years, 9 months ago

I cannot get this program to run, any quick fix for me?

Python 32bit: 3.5.2

https://github.com/unr-arl/DubinsAirplane


File "DubinsAirplaneMain.py", line 46
print '### Path Type: short climb RSR'
^
SyntaxError: invalid syntax
Advertisement
It seems the code was written for an older version of Python. Starting with Python 3.0, print changed from a statement to a function. See: What’s New In Python 3.0.

If you are learning Python, then you may consider downgrading to an older version of python.
If you need different versions of python installed side-by-side, then you may consider using a virtual environment.

Thanks, I'll try a lower version then

Have a nice day!

Jack

Newer python "print( stuff )" requires parentheses around the stuff you want to print, but the syntax error is at the 'p' and not after it. This usually indicates a missing bracket or parenthesis at the line before.

This topic is closed to new replies.

Advertisement