Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#263 OpenGL for python displayed TypeError in Linux

v3.0.0
closed
None
3
2014-03-25
2014-03-25
Vincent
No

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?

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...

Discussion

  • Have you installed freeglut/glut on the machine? You have a NULL _base_glutInit, which is GLUT.glutInit on Linux.

     
  • Vincent
    Vincent
    2014-03-25

    Issue is fixed after I run sudo apt-get install freeglut3-dev

     
    • status: open --> closed
    • assigned_to: Mike C. Fletcher