Standalone kivy application fail to run on a different machine

懵懂的女人 提交于 2020-01-15 09:34:28

问题


I am new to kivy and I was able to finally finish my project and compile it into a single executable using pyinstaller and its spec file.

If I try to launch it on a machine with no kivy or python installation it always fails with this error (Below).

I have looked and researched amny articles but most of them assume that kivy or the path of the missing png or gstreamer to be in the PATH but my machines where I am trying to launch does not have python or kivy.

Can someone please help me here? Thank you for your time.


[WARNING           ] [Image       ] Unable to load image <C:\Users\ace\AppD
ata\Local\Temp\_MEI65~1\kivy_install\data\glsl\default.png>

[CRITICAL          ] [Window      ] Unable to find any valuable Window provider
at all!

sdl2 - Exception: SDL2: Unable to load image

File "site-packages\kivy\core\__init__.py", line 67, in core_select_lib

File "site-packages\kivy\core\window\window_sdl2.py", line 138, in __init__

File "site-packages\kivy\core\window\__init__.py", line 722, in __init__

File "site-packages\kivy\core\window\window_sdl2.py", line 255, in create_window

File "site-packages\kivy\core\window\__init__.py", line 897, in create_window

File "kivy\graphics\instructions.pyx", line 756, in kivy.graphics.instructions

.RenderContext.__init__ (kivy\graphics\instructions.c:10729)

File "site-packages\kivy\core\image\__init__.py", line 512, in __init__

File "site-packages\kivy\core\image\__init__.py", line 700, in _set_filename

File "site-packages\kivy\core\image\__init__.py", line 430, in load

File "site-packages\kivy\core\image\__init__.py", line 198, in __init__

File "site-packages\kivy\core\image\img_sdl2.py", line 42, in load

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

来源:https://stackoverflow.com/questions/39643710/standalone-kivy-application-fail-to-run-on-a-different-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!