PyOpenGL glutWireTeapot not working?

I know this is a bit off-topic, but I think it is best to post it here. I am using PyOpenGL-3.0.2.win32 with the 2.7.3 version of python. Every time I execute this code:


from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
#import sys


def draw():
    glutWireTeapot(0.5)
    glFlush()




glutInit(sys.argv)
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB)
glutCreateWindow("My First OGL Program")
glutDisplayFunc(draw)
glutMainLoop()
draw()

It returns this:


Traceback (most recent call last):
  File "H:/Unarchived/Open_GL_tut.py", line 11, in <module>
    glutInit(sys.argv)
  File "C:\Python27\lib\site-packages\OpenGL\GLUT\special.py", line 324, in glutInit
    _base_glutInit( ctypes.byref(count), holder )
TypeError: 'NoneType' object is not callable

I am not entirely sure why. I just hope that you guys could help me with this apparent bug or error that I am experiencing. Cheers :slight_smile:

Are you certain that the command line parameters you are passing in are correct? It looks like the gluInit function is is getting an error when processing your input.