title: PyOpenGL glutInit NullFunctionError
body: <p>I am running Anaconda Python 2.7 on a Win7 x64 machine and used </p>
  
  <pre><code>pip install PyOpenGL PyOpenGL_accelerate
  </code></pre>
  
  <p>at the Anaconda command line to install PyOpenGL.</p>
  
  <p>I have some code (not my own I must confess) that makes use of glutInit</p>
  
  <pre><code>import sys
  import math
  import numpy
  
  import OpenGL
  from OpenGL.GL import *
  from OpenGL.GLUT import *
  
  import Image
  
  import linkage
  
  # ... a whole load of definitions etc ...
  
  glutInit(sys.argv)
  glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB)
  glutInitWindowSize(600, 600)
  glutCreateWindow('linkage')
  init()
  initWindow()
  glutIdleFunc(idle)
  glutMainLoop()
  </code></pre>
  
  <p>I run by entering the following at the command line:</p>
  
  <pre><code>python main.py peaucellier.txt
  </code></pre>
  
  <p>But then get the following error (line 371 is the glutInt(sys.argv) line above)</p>
  
  <pre><code>File "C:/Users/Owner/Documents/Python Scripts/linkage/main.py", line 371, in &lt;module&gt;
  glutInit(sys.argv)
  
  File "C:\Anaconda\lib\site-packages\OpenGL\GLUT\special.py", line 333, in glutInit
  _base_glutInit( ctypes.byref(count), holder )
  
  File "C:\Anaconda\lib\site-packages\OpenGL\platform\baseplatform.py", line 407, in __call__
  self.__name__, self.__name__,
  
  NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
  </code></pre>
  
  <p>I have looked at similar errors posted in this forum but none of the proposed fixes are working which is why I'm asking, what's wrong here?</p>
  
  <p>Is the installation at fault? Are the imports correct?</p>
  
  <p>EDIT: After trying many many fixes for the official release I am now using an unofficial release that works perfectly from <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/" rel="noreferrer">Unofficial Windows Binaries for Python Extension Packages</a></p>