Share your pyinstaller spec file.
My guess is that the program can not find the kv files.  DId you add them 
to the datas section?
There is a kivy logfile located at:  "C:\Users\your_username\.kivy\logs", 
read the log file for clues to the issue.

Here is a working spec file - you may find this helpful.  This project has 
a dir structure that complicates things a little.
https://github.com/ElliotGarbus/KivyCythonWinSample/blob/main/inno-pyinstaller/w11-app.spec

In the most recent version of pyinstaller there was a change to the content 
directory location, either use full file path addressing or set the 
contents directory to '.'
See the exe section:
contents_directory='.',

read: https://pyinstaller.org/en/stable/runtime-information.html#using-file
If you sent the contents directory to '.', you do not need to use __file__, 
the launcher will set the current working directory.  If you do not change 
the content_directory, you must reference files relative to __file__.


On Thursday, May 9, 2024 at 8:04:03 AM UTC-7 Aftab Sarwar wrote:

> I have a Kivy app that works fine from Pycharm IDE or when run from 
> command line. However, after converting it to an exe with PyInstaller, the 
> app only shows a blank screen and stays there. I'm using Python 3.12, Kivy 
> 2.3 and Pyinstaller 6.6.0. 
> [image: crs_blank_screen.png]
> *Note:* The app/window does not close itself, it just stays there but I 
> cannot see any widget on it.
> I have tried to downgrade the Pyinstaller to 6.0.0 and 4.0.0 with no 
> success.
> I have also tried to downgrade Kivy to 2.0.0 with no success.
> I see no message on console after "Start application main loop".
> Please help as I have already spent much time on it.
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/d4d7eae5-8c88-4ae7-9316-c4d786126f67n%40googlegroups.com.

Reply via email to