With macOS Sierra, I'm occasionally getting a weird error:
python[72551:32862168] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [0 nan]'
It's to do with the version of Tk that Apple ships. What may fix it is installing ActiveTCL:
http://www.activestate.com/activetcl/downloads
More info here: git/git-scm.com#853