PyOpenGL出现错误TypeError: 'NoneType' object is not callable

在Win7 64bit上用Python+PyOpenGL时,调用glutInit()即出错:

_base_glutInit( ctypes.byref(count), holder )

TypeError: 'NoneType' object is not callable

这时就下载名为glut32.dll的动态链接库文件,Win7 32位系统放到C:\Windows\System32,Win7 64位系统放到C:\Windows\SysWOW64

 

posted @ 2013-11-25 20:20  spark woo  阅读(375)  评论(0编辑  收藏  举报