Open shandy7 opened 1 year ago
So the solution in #38 doesn't work for you.
Some Windows and Pyinstaller users are needed. I have no idea about this 🤷
Hi rdbende The solution in #38 is not working for me .
@shandy7 I was able to make it work using this exact PyInstaller command on Windows:
py -m PyInstaller --onefile --collect-data sv_ttk CalculatorApp.pyw
This is the same solution as shown in #38 so maybe it won't help but I was having the exact same error as you before I tried this.
I found the solution here: https://stackoverflow.com/a/74872259
Make sure the sv_ttk
not only installed in the specific venv, but also your global python environment
Oh,You need to add this parameter after pyinstaller:--collect-data sv_ttk
If you're installing sv_ttk
inside a .venv
, then you also need to make sure that pyinstaller
is installed and launched from within the same .venv
, along with all other packages that you need for your application.
Never launch pyinstaller
as global, that will take ALL packages that you've installed to your system, and package it with your app (depending on how good the auto trimming is, might take a good chunk of it away though, but still ill advised to run as global).
Hi rdbende i tried creating a exe for my python code with sun valley theme . I am using auto-py-to-exe to create the exe file. i have added the theme using collect data but on opening the exe file i get the following error.
Traceback (most recent call last): File "Interlock.py", line 107, in
File "sv_ttk__init__.py", line 19, in wrapper
_tkinter.TclError: couldn't read file "C:\Users\X0132832\AppData\Local\Temp_MEI197282\sv_ttk\sv.tcl": no such file or directory