-
July 3rd, 2016, 02:26 AM
#1
Cannot run this python program.
Hello,
When I ran this python program with python 3.5.2
I would get
https://github.com/unr-arl/DubinsAirplane
Code:
File "DubinsAirplaneMain.py", line 46
print '### Path Type: short climb RSR'
^
SyntaxError: invalid syntax
Any ideas why?
Thanks a lot
Jack
-
July 3rd, 2016, 10:20 PM
#2
Re: Cannot run this python program.
Run it under Python 2.7 instead because it is not written for Python 3. In this case, print in Python 3 is a function, so if written for Python 3 it would have been:
Code:
print('### Path Type: short climb RSR')
Alternatively, you can update the Python code for Python 3, but if you are not familiar with the differences between Python 2 and Python 3, that could be very difficult.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|