甜瓜 wrote:
> I have installed PyOpenGL-3.0.0a6 in Python2.5 by using "python
> setup.py install". However, when I was using it:
>
>>>> import OpenGL.GLUT
>>>>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "d:\python25\lib\site-packages\pil\__init__.py", line 4, in <module>
> #
> File "build\bdist.win32\egg\OpenGL\GLUT\special.py", line 73, in <module>
> AttributeError: 'NoneType' object has no attribute 'glutDestroyWindow'
>
> Is this a bug? What should I do for correctly importing GLUT?
> Thank you.
>
Yup, it's a bug. I'll try to find some time to work on it this
weekend. That said, the bug I'm talking about fixing is that it's not
returning a NULL function object that will raise a more informative
error when you try to call it. It looks like loading the GLUT DLL is
failing. You are on Win32, so it's *possible* you just don't have GLUT
installed in system32, otherwise we'll need to track down why it's not
finding/loading the DLL for you.
Good luck,
Mike
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
|