Windows桌面上的OpenGL要求导致kivy致命错误 [英] kivy fatal error due to OpenGL requirement on windows desktop

查看:299
本文介绍了Windows桌面上的OpenGL要求导致kivy致命错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用python 2.7和kivy编写了一个Windows桌面应用程序,该应用程序在pyCharm IDE和python命令行中均运行良好.使用PyInstaller构建分发程序包后,从.. \ dist \ applicdir \运行应用程序,我会收到Kivy致命错误:

I have written a windows desktop application using Python 2.7 and kivy that runs perfectly well from the pyCharm IDE and from the python commandline. After building a distribution package using PyInstaller, running the application from the ..\dist\applicdir\ I get a Kivy Fatal Error:

GL:未找到最低要求的OpenGL版本(2.0)!

为什么?它从同一台PC上的2个不同角度运行,但不在同一台PC上的dist程序包中运行.

How come? It runs from 2 different angles on the same PC but not from the dist package on the same PC.

您能向我解释为什么在前两种情况下我没有收到致命错误吗?

Can you explain to me why in the first two situations I do not get the fatal Error?

>>>>>>>>>>>>>> EDIT 1 <<<<<<<<<<<<<<<

[INFO              ] [Logger      ] Record log in ~\.kivy\logs\kivy_16-04-01_99.txt
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015,20:32:19) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 179 symbols loaded
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO              ] [OSC         ] using <thread> for socket
[INFO              ] [Window      ] Provider: sdl2
[WARNING           ] The 'fake' fullscreen option has been deprecated, use Window.borderless or the borderless Config option instead.
[INFO              ] [GL          ] GLEW initialization succeeded
[INFO              ] [GL          ] OpenGL version <4.0.0 - Build 10.18.10.4176>

[INFO              ] [GL          ] OpenGL vendor <Intel>
[INFO              ] [GL          ] OpenGL renderer <Intel(R) HD Graphics 4000>
[INFO              ] [GL          ] OpenGL parsed version: 4, 0
[INFO              ] [GL          ] Shading version <4.00 - Build 10.18.10.4176>

[INFO              ] [GL          ] Texture max size <16384>
[INFO              ] [GL          ] Texture max units <16>
[INFO              ] [Window      ] auto add sdl2 input provider
[INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO              ] [Text        ] Provider: sdl2
PyInstaller Bootloader 3.x
LOADER: executable is C:\Projects\UP52\PACKAGE\dist\up52creator\up52creator.exe
LOADER: homepath is C:\Projects\UP52\PACKAGE\dist\up52creator
LOADER: _MEIPASS2 is NULL
LOADER: archivename is C:\Projects\UP52\PACKAGE\dist\up52creator\up52creator.exe

LOADER: No need to extract files to run; setting extractionpath to homepath
LOADER: SetDllDirectory(C:\Projects\UP52\PACKAGE\dist\up52creator)
LOADER: Already in the child - running user's code.
LOADER: Python library: C:\Projects\UP52\PACKAGE\dist\up52creator\python27.dll
LOADER: Loaded functions from Python library.
LOADER: Manipulating environment (sys.path, sys.prefix)
LOADER: sys.prefix is C:\Projects\UP52\PACKAGE\dist\UP52CR~1
LOADER: Setting runtime options
LOADER: Initializing python
LOADER: Overriding Python's sys.path
LOADER: Post-init sys.path is C:\Projects\UP52\PACKAGE\dist\up52creator
LOADER: Setting sys.argv
LOADER: setting sys._MEIPASS
LOADER: importing modules from CArchive
LOADER: extracted struct
LOADER: callfunction returned...
LOADER: extracted pyimod01_os_path
LOADER: callfunction returned...
LOADER: extracted pyimod02_archive
LOADER: callfunction returned...
LOADER: extracted pyimod03_importers
LOADER: callfunction returned...
LOADER: Installing PYZ archive with Python modules.
LOADER: PYZ archive: out00-PYZ.pyz
LOADER: Running pyiboot01_bootstrap.py
no mem to add parser accelerators
 Traceback (most recent call last):
   File "<string>", line 21, in <module>
   File "C:\Projects\UP52\qmonos.py", line 56, in showHome
     recMgr = Manager()
   File "C:\Python27\lib\multiprocessing\__init__.py", line 99, in Manager
     m.start()
   File "C:\Python27\lib\multiprocessing\managers.py", line 528, in start
     self._address = reader.recv()
 EOFError
qmonosmain returned -1
LOADER: OK.
LOADER: Cleaning up Python interpreter.
 Traceback (most recent call last):
   File "<string>", line 21, in <module>
 Traceback (most recent call last):
   File "<string>", line 21, in <module>
   File "C:\Projects\UP52\qmonos.py", line 56, in showHome
     recMgr = Manager()
   File "C:\Projects\UP52\qmonos.py", line 56, in showHome
   File "C:\Python27\lib\multiprocessing\__init__.py", line 99, in Manager
     m.start()
     recMgr = Manager()
   File "C:\Python27\lib\multiprocessing\managers.py", line 528, in start
   File "C:\Python27\lib\multiprocessing\__init__.py", line 99, in Manager
      m.start()
    self._address = reader.recv()
   File "C:\Python27\lib\multiprocessing\managers.py", line 528, in start
 EOFError
qmonosmain returned -1
LOADER: OK.
LOADER: Cleaning up Python interpreter.
     self._address = reader.recv()
 EOFError
qmonosmain returned -1
LOADER: OK.
LOADER: Cleaning up Python interpreter.

推荐答案

更新图形驱动程序解决了该问题.但是仍然很奇怪的情况是,在创建PyInstaller软件包后,应用程序会在OpenGL版本问题上触发,而PyCharm IDE和Python命令行却不会触发…….

Updating the graphics driver solved the problem. But still a strange situation that after PyInstaller package creation the application triggers on OpenGL version issues and the PyCharm IDE and Python commandline do not.......

这篇关于Windows桌面上的OpenGL要求导致kivy致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆