Python Forum

Full Version: PY TO EXE CRASH
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am having an issue with kivy after converting my script to exe. Exe closes immediately after opening it, running it in cmd prints the following:

Quote:[INFO ] [Logger ] Record log in C:\Users\default\.kivy\logs\kivy_19-10-19_7.txt
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at "C:\Users\default\Desktop\pylearn\p\ToolsProject\dist\ToolProject\kivy\__init__.pyc"
[INFO ] [Python ] v3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "C:\Users\default\Desktop\pylearn\p\ToolsProject\dist\ToolProject\ToolProject.exe"
[INFO ] [Factory ] 184 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] Backend used <glew>
[INFO ] [GL ] OpenGL version <b'4.6.0 NVIDIA 436.48'>
[INFO ] [GL ] OpenGL vendor <b'NVIDIA Corporation'>
[INFO ] [GL ] OpenGL renderer <b'GeForce GTX 950/PCIe/SSE2'>
[INFO ] [GL ] OpenGL parsed version: 4, 6
[INFO ] [GL ] Shading version <b'4.60 NVIDIA'>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <32>
[WARNING] [Image ] Unable to load image <C:\Users\default\Desktop\pylearn\p\ToolsProject\dist\ToolProject\kivy_install\data\glsl\default.png>
[CRITICAL] [Window ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
sdl2 - Exception: SDL2: Unable to load image
File "site-packages\kivy\core\", line 71, in core_select_lib
File "site-packages\kivy\core\window\", line 152, in __init__
File "site-packages\kivy\core\window\", line 981, in __init__
File "site-packages\kivy\core\window\", line 312, in create_window
File "site-packages\kivy\core\window\", line 1258, in create_window
File "kivy\graphics\instructions.pyx", line 783, in
File "site-packages\kivy\core\image\", line 561, in __init__
File "site-packages\kivy\core\image\", line 756, in _set_filename
File "site-packages\kivy\core\image\", line 460, in load
File "site-packages\kivy\core\image\", line 223, in __init__
File "site-packages\kivy\core\image\", line 47, in load

[CRITICAL] [App ] Unable to get a Window, abort.

There is nothing unusual in a script just basic kv that loads from string and few external modules. Anything would be a great help even linking to solution.

My bad I forgot to read the documentation for anyone looking for a solution: