The cards that came with our Spirit Rovers had Raspbian Jessie installed... The first thing I did was flash my card with Raspbian Stretch from 11-29-17 from "the mothership" at https://www.raspberrypi.org/downloads/raspbian/.
Similarly, as I"m going through your python and writing my own, I'm making sure that we can future-proof our code by including the line:
Code: Select all
from __future__ import print_function, division
Since those are the two commonly-used things that will hork up scripts in the future when Python3 is the only thing on the planet and Python 2 is deprecated in 2020. I strongly recommend that we gear all of our scripts to be Python3 compatible NOW to save us headaches later.
For things like this, shouldn't we gear our work looking towards the future, using the current Raspbian release, Python 3, etc.?