[Python-modules-team] Bug#590452: python-opengl: Needs freeglut3-dev installed for glut to work (e.g with bouncy)
Bernhard Reiter
bernhard at intevation.de
Mon Jul 26 11:59:43 UTC 2010
Package: python-opengl
Version: 3.0.0~b6-3
Severity: important
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.
-- System Information:
Debian Release: 5.0.5
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-opengl depends on:
ii freeglut3 2.4.0-6.1 OpenGL Utility Toolkit
ii libgl1-mesa-glx [libgl1] 7.0.3-7 A free implementation of the OpenG
ii libglu1-mesa [libglu1] 7.0.3-7 The OpenGL utility library (GLU)
ii python [python-ctypes] 2.5.2-3 An interactive high-level object-o
ii python-central 0.6.8 register and build utility for Pyt
ii python-pkg-resources 0.6c8-4 Package Discovery and Resource Acc
python-opengl recommends no packages.
Versions of packages python-opengl suggests:
ii libgle3 3.1.0-6 OpenGL tubing and extrusion librar
ii python-numpy 1:1.1.0-3+lenny1 Numerical Python adds a fast array
ii python-tk 2.5.2-1 Tkinter - Writing Tk applications
-- no debconf information
More information about the Python-modules-team
mailing list