我们在Python 2.7 + kivy 1.9.1-dev1中开发了一个应用程序。使用PyInstaller创建可安装的包。在windows7和windows10环境中正常工作。但是,在vmware - windows7配置中安装时,我们遇到以下问题:
[INFO ] Logger: Record log in C:\Users\Sequence\.kivy\logs\kivy_17-03-22_0.txt
[WARNING ] [Config ] Upgrading configuration in progress.
[WARNING ] [Config ] Older configuration version detected (0 instead of 14)
[INFO ] Kivy: v1.9.1-dev1
[INFO ] Python: v2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)]
[INFO ] Image: Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO ] Text: Provider: sdl2
[INFO ] Factory: 179 symbols loaded
[INFO ] OSC: using <thread> for socket
[INFO ] Window: Provider: sdl2
[CRITICAL ] Window: Unable to find any valuable Window provider at all!
sdl2 - RuntimeError: No matching GL pixel format available
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 237, in create_window
File "kivy\core\window\_window_sdl2.pyx", line 133, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy\core/window\_window_sdl2.c:2284)
File "kivy\core\window\_window_sdl2.pyx", line 55, in kivy.core.window._window_sdl2._WindowSDL2Storage.die (kivy\core/window\_window_sdl2.c:1479)
[CRITICAL ] App: Unable to get a Window, abort.
[WARNING ] stderr: Exception SystemExit: 1 in 'kivy.properties.dpi2px' ignored
[WARNING ] stderr: Traceback (most recent call last):
[WARNING ] stderr: File "ngamain.py", line 34, in <module>
[WARNING ] stderr: File "workflow.py", line 1089, in startWorkflow
[WARNING ] stderr: File "site-packages\kivy\app.py", line 802, in run
[WARNING ] stderr: File "workflow.py", line 1081, in build
[WARNING ] stderr: AttributeError: 'NoneType' object has no attribute 'clearcolor'
问题可能与OpenGL 2.0 / 32bits要求有关。但我不知道如何配置/解决这个问题。谁可以提供帮助或有任何关于如何进行的建议?
提前致谢。
答案 0 :(得分:0)
好像您的虚拟机上没有安装VGA驱动程序。 Microsoft仅在其驱动程序中包含OpenGL 1.x支持,因此请尝试安装最新版本。