当我尝试将Opengl导入我的python代码时,出现错误。 这是错误消息:
from OpenGL.GLU.projection import *
File "C:\Users\GAREH\AppData\Local\Programs\Python\Python37\lib\site-packages\pyopengl-3.1.3b1-py3.7.egg\OpenGL\GLU\projection.py", line 3, in <module>
from OpenGL import GL
File "C:\Users\GAREH\AppData\Local\Programs\Python\Python37\lib\site-packages\pyopengl-3.1.3b1-py3.7.egg\OpenGL\GL\__init__.py", line 6, in <module>
from OpenGL.GL.images import *
File "C:\Users\GAREH\AppData\Local\Programs\Python\Python37\lib\site-packages\pyopengl-3.1.3b1-py3.7.egg\OpenGL\GL\images.py", line 628, in <module>
suffix, arrayConstant, getattr(GL_1_1,functionName),
File "C:\Users\GAREH\AppData\Local\Programs\Python\Python37\lib\site-packages\pyopengl-3.1.3b1-py3.7.egg\OpenGL\GL\images.py", line 578, in typedImageFunction
if baseFunction:
File "C:\Users\GAREH\AppData\Local\Programs\Python\Python37\lib\site-packages\pyopengl-3.1.3b1-py3.7.egg\OpenGL\platform\baseplatform.py", line 382, in __nonzero__
self.load()
File "C:\Users\GAREH\AppData\Local\Programs\Python\Python37\lib\site-packages\pyopengl-3.1.3b1-py3.7.egg\OpenGL\platform\baseplatform.py", line 397, in load
force_extension = self.force_extension,
TypeError: constructFunction() got an unexpected keyword argument 'force_extension'*