When trying to start a python-opengl appliction that uses (free)glut
you get a traceback if you do not install freeglut3-dev.
However I do not think that installation of freeglut3-dev should
influence the runtime system. Or it must be added to the dependencies.
Maybe the defect is already fixed for newer versions, I did browser a number
of problem reports, but I did not find one that fitted good enough
for this info to go in.
[..]
GLUT font error 'NoneType' object has no attribute '_handle'
GLUT font error 'NoneType' object has no attribute '_handle'
GLUT font error 'NoneType' object has no attribute '_handle'
Traceback (most recent call last):
File "y.py", line 19, in <module>
glutInit()
File "/usr/lib/python2.5/site-packages/OpenGL/GLUT/special.py", line 316, in glutInit
_base_glutInit( ctypes.byref(count), holder )
TypeError: 'NoneType' object is not callable
this was from
python y.py
from OpenGL.GLUT import *
from OpenGL.GL import *
def init():
glClearColor(0,0,0,0)
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
glOrtho(0,1,0,1,-1,1)
def display():
glClear(GL_COLOR_BUFFER_BIT)
glColor3f(1,1,1)
glBegin(GL_POLYGON)
glVertex3f(0.25, 0.25, 0)
glVertex3f(0.75, 0.25, 0)
glVertex3f(0.75, 0.75, 0)
glVertex3f(0.25, 0.75, 0)
glEnd()
glFlush()
if __name__ == '__main__' :
glutInit()
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB)
glutInitWindowSize(250, 250)
glutInitWindowPosition(100, 100)
glutCreateWindow("Hello World")
init()
glutDisplayFunc(display)
glutMainLoop()
copied from
https://bugs.launchpad.net/ubuntu/+source/pyopengl/+bug/408212/comments/12
Starting bouncy will have the same effect.
Until you install freeglut3-dev, then startup works,
though some texts are still not displayed for me, which could be
a hint towards that this only fixes the error reporting
and still another package is needed.