Reputation: 77
I have a script that generates a UI which gets altered based on certain buttons. When I run my script standalone it works totally fine, from start to finish.
Issue is, when I compile it with PyInstaller (I do not use onefile or windowed), the GUI breaks while throwing this error:
invalid command name "1940661235784UpdateUI"
while executing
"1940661235784UpdateUI"
("after" script)
at load function
Exception in Tkinter callback
Traceback (most recent call last):
File "tkinter\__init__.py", line 1705, in __call__
File "UserInputs.py", line 614, in <lambda>
File "UserInputs.py", line 921, in ShowLoadMenu
IndexError: list index out of range
If this code works prior to pyinstaller, what could cause this inconsistent behavior?
Upvotes: 0
Views: 299
Reputation: 77
PyInstaller compiles to a dist folder with all the dependencies inside, since I use relative paths in my code, the new folder was trying to pull from what didn't exist.
Upvotes: 1