Reputation: 5
I have made a GUI using PySimpleGui, the compiled (.exe) file works fine when I run on my own computer. I've compiled the file with Pyinstaller, through the command "pyinstaller -F -w myfile.py". I have one colleague which it also works for when he runs it on his computer, but my second colleague has issues when he tries to run the .exe file.
He gets error "_tkinter.TclError: Can't find a usable init.tcl in the following directories: ... This probably means that Tcl wasn't installed properly". I've been searching for quite some time, but cant seem to solve the issue, have tried adding "--hidden-import tkinter" when I compile the file, but nothing seems to help. Is there somebody who knows a solution to this issue?
Upvotes: 0
Views: 2270
Reputation: 150
according to answers here you need to copy tcl into the lib folder...
Python Tkinter throwing Tcl error
Your .spec file may also need the lib?
datas=[
('c:\\pathtoyour\\python\\3.8.10\\x64\\lib\\site-packages', '.'),
maybe also try with/without the --onefile flag
Upvotes: 1