[Python-modules-team] Bug#498403: python-opengl: GL.glRenderMode(GL.GL_SELECT) causes IndexError

Benedict Verhegghe bene at bumpy.ugent.be
Tue Sep 9 19:42:18 UTC 2008

Package: python-opengl
Version: 3.0.0~b3-1
Severity: important

Entering the OpenGL selection mode causes an error:

  File "/usr/lib/python2.5/site-packages/OpenGL/GL/pointers.py", line 261, in glRenderMode
currentMode = currentMode[0]
invalid index to scalar variable.

A possible fix is changing the relevant section of the above file:

		currentMode = currentMode[0]
	except (TypeError,ValueError), err:


		currentMode = currentMode[0]
	except (TypeError,ValueError,IndexError), err:

This works for me.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/1 CPU core)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-opengl depends on:
ii  freeglut3                     2.4.0-5.2  OpenGL Utility Toolkit
ii  libgl1-mesa-glx [libgl1]      7.0.3-5    A free implementation of the OpenG
ii  libglu1-mesa [libglu1]        7.0.3-5    The OpenGL utility library (GLU)
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-central                0.6.7      register and build utility for Pyt
ii  python-ctypes                 1.0.2-5    Python package to create and manip
ii  python-pkg-resources          0.6c8-4    Package Discovery and Resource Acc

python-opengl recommends no packages.

Versions of packages python-opengl suggests:
pn  libgle3                       <none>     (no description available)
ii  python-numpy                  1:1.1.0-3  Numerical Python adds a fast array
ii  python-tk                     2.4.4-1    Tkinter - Writing Tk applications 

-- no debconf information

More information about the Python-modules-team mailing list