Setting up PyOpenGL with freeglut for Python 3.5.2
<p>I am trying to set up my machine to use PyOpenGL with freeglut. I have Python version 3.5.2 and a 64 bit copy of Windows 8.</p>

<p>I have downloaded PyOpenGL using pip, then downloaded freeglut and placed the <code>include\</code> and <code>lib\</code> folders at <code>C:\Program Files\Common Files\MSVC\freeglut</code>. I have also placed a link to the 64 bit freeglut.dll file in the environment variables linking to C:\Work\freeglut.dll</p>

<p>As I do not know any OpenGL yet I am simply trying to run the code from this page to see if my setup is functional <a href="http://www.de-brauwer.be/wiki/wikka.php?wakka=PyOpenGLSierpinski" rel="nofollow">http://www.de-brauwer.be/wiki/wikka.php?wakka=PyOpenGLSierpinski</a>. When run I receive the error message </p>

<pre><code>Traceback (most recent call last):
  File "sier_tri.py", line 35, in &lt;module&gt;
    glutInit()
  File "C:\Users\Dylan\AppData\Local\Programs\Python\Python35-32\lib\site-packag
es\OpenGL\GLUT\special.py", line 333, in glutInit
    _base_glutInit( ctypes.byref(count), holder )
  File "C:\Users\Dylan\AppData\Local\Programs\Python\Python35-32\lib\site-packag
es\OpenGL\platform\baseplatform.py", line 407, in __call__
    self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit,
check for bool(glutInit) before calling
</code></pre>

<p>Does anyone know what is causing this/how to fix it?</p>

<p>place the <code>glut32.dll</code> next to the <code>py</code> file.</p>

<p>Check this <a href="http://stackoverflow.com/questions/39181192/attempt-to-call-an-undefined-function-glutinit">link</a></p>

python freeglut pyopengl