Menu

#248 missing constant in 3.0.2a5

open
nobody
None
5
2014-08-23
2012-03-14
Anonymous
No

Missing constant in 3.0.2a5:

Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import OpenGL
>>> OpenGL.__version__
'3.0.2a5'
>>> import OpenGL.GL
>>> OpenGL.GL.GL_VERTEX_SHADER_ARB
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'GL_VERTEX_SHADER_ARB'

Compare 3.0.2a2:
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import OpenGL
>>> OpenGL.__version__
'3.0.2a2'
>>> import OpenGL.GL
>>> OpenGL.GL.GL_VERTEX_SHADER_ARB
GL_VERTEX_SHADER_ARB

Other notes:
-- seen on Fedora 14 and 16
-- looking at source, PyOpenGL-3.0.1-py2.7.egg/OpenGL/raw/GL/constants.py appears to be the home of this constant, and it's missing in 3.0.2a5
-- presumably all constants in that file are affected; the constant above is just the first one hit in my code

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.