google / spatial-media

Specifications and tools for 360º video and spatial audio.
Other
1.86k stars 430 forks source link

Fixed "failed to execute script gui" error when running under PyInstaller #102

Closed pwroberts closed 8 years ago

pwroberts commented 8 years ago

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.