#179 unable to import GLUT

v3.0.0
closed-fixed
GLUT (25)
5
2008-01-07
2007-12-27
Anonymous
No

I get the following error upon a command:

>>> from OpenGL.GLUT import *

Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
from OpenGL.GLUT import *
File "build\bdist.win32\egg\OpenGL\GLUT\__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'

Please help me to get GLUT to work

shadegrown@yandex.ru

Discussion

  • Logged In: YES
    user_id=34901
    Originator: NO

    Your problem is likely that GLUT is not installed, or is installed somewhere other than on the system's library lookup path. The newest code uses checks that allow GLUT not to be installed and still import the GLUT module, but that doesn't address your problem, which is most likely just a system setup issue. Closing for now.

     
    • assigned_to: nobody --> mcfletch
    • status: open --> closed-fixed
     
  • Matti Picus
    Matti Picus
    2012-11-18

    It would be nice to get a better error message when no glut is available, for instance in opengl/platform/win32.py, after testing for all the glut variations (line 51 for me), something like

    if GLUT is None:
    logger.warning('No GLUT found, a glut dll must be on the PATH')

    It would have saved me some time today...