I using Linux in VirtualBox, I already install python-dev, and also using
sudo pip install PyOpenGL PyOpenGL_accelerate
to install Python OpenGL
but when I run my test, python give me following error:
Traceback (most recent call last):
File "test.py", line 13, in <module>
glutInit(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/OpenGL/GLUT/special.py", line 326, in glutInit
_base_glutInit( ctypes.byref(count), holder )
TypeError: 'NoneType' object is not callable
How do I fix this issue?</module>
I am using Python 2.7.3 OS in Virtualbox is Ubuntu 12.10 LTS
Also I already try sudo pip uninstall PyOpenGL PyOpenGL_accelerate to uninstall everything, and then drag the PyOpenGL-3.1.0b2.tar.gz file to Linux, run the following script:
sudo python setup.py install (in PyOpenGL-3.1.0b2 folder)
but still no luck...
Have you installed freeglut/glut on the machine? You have a NULL _base_glutInit, which is GLUT.glutInit on Linux.
Issue is fixed after I run sudo apt-get install freeglut3-dev