我一直在尝试学习 python 并使用 kivy 创建一个小型应用程序,以了解 kivy python 应用程序。但我什至无法让标准 kivy 安装附带的 pong 教程正常工作。当我在示例文件夹中运行文件 pong.py 时,我得到以下输出。
botstrapping Kivy @ C:\Users\myname\Applications\Kivy\
Setting Environment Variables:
#################################
GST_REGISTRY
C:\Users\myname\Applications\Kivy\gstreamer\registry.bin
---------------
GST_PLUGIN_PATH:
C:\Users\myname\Applications\Kivy\gstreamer\lib\gstreamer-0.10
---------------
PATH:
C:\Users\myname\Applications\Kivy\;C:\Users\myname\Applications\Kivy\Python;C:
\Users\myname\Applications\Kivy\Python\Scripts;C:\Users\myname\Applications\Ki
vy\gstreamer\bin;C:\Users\myname\Applications\Kivy\MinGW\bin;C:\Perl\site\bin;C
:\Perl\bin;C:\Program Files\ActiveState Perl Dev Kit 9.2.1\bin\;C:\Program Files
\ActiveState Komodo Edit 7\;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\
Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Windows
PowerShell\v1.0\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Progra
m Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;C:\P
rogram Files\Autodesk\Backburner\;C:\Program Files\Common Files\Autodesk Shared\
;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Microsoft A
SP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Windows Kits\8.0\Windows Perform
ance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program F
iles\QuickTime\QTSystem\;C:\Program Files\MiKTeX 2.9\miktex\bin\;C:\Program File
s\Perforce
----------------------------------
PYTHONPATH:
C:\Users\myname\Applications\Kivy\kivy;
----------------------------------
##################################
done bootstraping kivy...have fun!\n
running "python.exe C:\Users\myname\Applications\Kivy\kivy\examples\tutorials\p
ong\main.py" \n
[INFO ] Kivy v1.5.1
[INFO ] [Logger ] Record log in C:\Users\myname\.kivy\logs\ki
vy_13-02-15_11.txt
[INFO ] [Factory ] 137 symbols loaded
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=
Nones
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout
=60s
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout
=Nones
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeo
ut=60s
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeou
t=3600s
Traceback (most recent call last):
File "C:\Users\myname\Applications\Kivy\kivy\examples\tutorials\pong\main.py
", line 4, in <module>
from kivy.app import App
File "C:\Users\myname\Applications\Kivy\kivy\kivy\app.py", line 222, in <mod
ule>
from kivy.uix.widget import Widget
File "C:\Users\myname\Applications\Kivy\kivy\kivy\uix\widget.py", line 86, i
n <module>
from kivy.graphics import Canvas
File "C:\Users\myname\Applications\Kivy\kivy\kivy\graphics\__init__.py", lin
e 76, in <module>
from kivy.graphics.instructions import Callback, Canvas, CanvasBase, \
File "vbo.pxd", line 8, in init kivy.graphics.instructions (kivy\graphics\ins
tructions.c:11678)
File "texture.pxd", line 3, in init kivy.graphics.vbo (kivy\graphics\vbo.c:43
61)
File "texture.pyx", line 1, in init kivy.graphics.texture (kivy\graphics\text
ure.c:11112)
File "opengl_utils.pyx", line 19, in init kivy.graphics.opengl_utils (kivy\gr
aphics\opengl_utils.c:3717)
ImportError: DLL load failed: The specified procedure could not be found.
Press any key to continue . . ."
我相信在声明期间失败即将来临:
from opengl import _GL_GET_SIZE
但我不确定为什么这不起作用以及为什么它甚至无法加载他们的预制教程。有谁知道如何解决这个问题?