Skip to content

Python 3 Support!

Compare
Choose a tag to compare
@jfoot jfoot released this 19 Dec 19:01
· 66 commits to master since this release
da46c5f

Python 3 Support! #4

We're a little late to the party, but we've finally upgraded everything to Python 3 . All the programs have been tested over the last few days and all seem to be working fine, fingers crossed. If you're currently using the Python 2 version instructions for upgrading can be found at update.jonathanfoot.com. The new programs have "Py3" on the end of their file names. If you would like to stick with Python 2, you can but I'm deprecating it; more information found below.

So what's new?

Well unfortunately I'm currently in my Third year at university so don't have much free time, there are a few noticeable bug fixes though.

London Underground (LondonUndergroundPy3.py) - V2.1.LU

  • Fixed #6, where the via message was partially visible before scrolling had even started (if you had advanced animations turned on)
  • Fixed #3, where the program could occasionally crash if you have the stand back train approaching warning message turned on.
  • Changed the Stand Back message to be OFF by default, if you wish to re-enable it you can use the new "--Warning" tag.

National Buses (NationalBusesPy3.py) - V2.1.OT

  • Fixed #2. fixed a crash which would affect mainly the National Buses program, where the number of services dropped below three.

National Rail (NationalRailPy3.py) - V2.1.NR

  • Fixed #2. fixed a crash which would occasionally affect the program, where the number of services dropped below three.

All Programs

  • Upgraded to Python 3
  • Added a "--no-console-output" flag to help with debugging, this will stop all output to console which isn't an error message and so you can ">> ReadingBuses.log 2>&1" or similar to log the output of the program into a file and collect any error messages with ease.
  • Added a "--filename" flag to change the file name of the outputted gif, when using the gifanim display type.

Other

  • Updated the instructions on the website to use Python 3 by default
  • Fixed some links on the website which referenced old dead links.
  • Updated the website to use the new Raspberry Pi Imager tool
  • Updated the website to include instructional videos (coming soon)
  • Changed the automatic check for update frequency to 1 (every day), down from 3 days.
  • Added a simple shell script to check for updates in the program manually. If you type "sh updateScript.sh" in the program directory it will let you know if there is any updates and install them if there are. The program will still automatically check and install updates where it can.

Known issues

There is currently one known issue, mainly affecting the National Buses and National Rail departure board #5, I've been unable to work out what's causing this currently. But will push out an update when a solution is found.

Versioning

  • London Underground now on Version 2.1.LU
  • National Buses now on Version 2.1.OT
  • Reading Buses now on Version 2.0.RB
  • National Rail now on Version 2.1.NR
  • Demo now on Version 2.0.EX

Python 2 Deprecation

Going forwards I've decided to drop support for Python 2, this means that none of the programs will be receiving any new updates or software fixes. To get the latest features and software updates you must switch over to Python 3. If you would like to stick with Python 2 you can use the new "--Acknowledge-Deprecated" tag.