PyTransit and Python 2.7

PyTransit and Python 2.7

by ENZO PASCALE -
Number of replies: 0

Follow the link below

https://drive.google.com/drive/folders/17rpcbmIxKOv5r2XFDhWqXlmUaRqmmWZY?usp=sharing

There you can find some notes describing what's going on, and a zip file containing a snapshot of PyTransit from 20 Feb 2019, that works with Python2.7

As I said in class, the reason to use Python 2.7 was because PyTransit did not support Python3 at the end of February this year, when the course started. However, now, 2 months later, we have the opposite issue: PyTransit supports Python 3 and it does no longer support Python 2.7.

As I wrote in the notes at the link above, you can either start using Python 3, or use the PyTransit snapshot working with Python2.7

Please, let me know if this does not work.

For Windows computers, it seams to me that the simplest would be to adopt Python 3 from now on.

Note that if you switch to Python 3, the code you already have written should work, provided that you change any print statement you might have 

from

print 1, 2, 3

to

print(1,2,3)