PyInstaller looks for import statements to determine the script's dependencies. The two Tkinter imports with different capitalization ('Tkinter' and 'tkinter') seemed to confuse the latest version of PyInstaller, and it wasn't including Tkinter in the packaged binary at all, even with --hidden-import Tkinter. The lowercase "tkinter" fallback import is for Python 3 compatibility, and since the script can't currently run under Python 3 for various other reasons, I removed the import. PyInstaller binaries now work again.
Fixes https://github.com/google/spatial-media/issues/100
PyInstaller looks for import statements to determine the script's dependencies. The two Tkinter imports with different capitalization ('Tkinter' and 'tkinter') seemed to confuse the latest version of PyInstaller, and it wasn't including Tkinter in the packaged binary at all, even with --hidden-import Tkinter. The lowercase "tkinter" fallback import is for Python 3 compatibility, and since the script can't currently run under Python 3 for various other reasons, I removed the import. PyInstaller binaries now work again.