独立的kivy应用程序无法在其他计算机上运行

时间:2016-09-22 15:57:06

标签: python kivy pyinstaller

我是kivy的新手,我终于完成了我的项目,并使用pyinstaller及其spec文件将其编译为单个可执行文件。

如果我尝试在没有安装kivy或python的机器上启动它,它总是会因为这个错误而失败(下面)。

我看过并研究过amny的文章,但是他们中的大多数都认为kivy或丢失的png或gstreamer的路径在PATH中,但是我试图启动的机器没有python或kivy。

有人可以帮我吗? 谢谢你的时间。

[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.

0 个答案:

没有答案