Issue 16 in glumpy: AttributeError: 'module' object has no attribute 'GL_ALPHA32F_ARB'

23 views
Skip to first unread message

glu...@googlecode.com

unread,
Mar 11, 2012, 9:27:32 AM3/11/12
to Nicolas...@inria.fr
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 16 by paxcalpt: AttributeError: 'module' object has no
attribute 'GL_ALPHA32F_ARB'
http://code.google.com/p/glumpy/issues/detail?id=16

It seems glumpy may have an issue with PyOpenGL 3.0.2a5.
Here's the traceback...

Traceback (most recent call last):

File "/Users/paxcalpt/Code/Projects/hg-udroid/udroid/uDroid/gui/_wxImageCanvas.py",
line 32, in onPaint
self._imGLTexture.draw(0, 0, -1, self._w, self._h)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/glumpy/image/image.py",
line 208, in draw
self._filter.activate( self._texture )

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/glumpy/image/filter.py",
line 173, in activate
self.build()

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/glumpy/image/filter.py",
line 260, in build
gl.glTexImage1D (gl.GL_TEXTURE_1D, 0, gl.GL_ALPHA32F_ARB,
AttributeError: 'module' object has no attribute 'GL_ALPHA32F_ARB'

glu...@googlecode.com

unread,
Mar 12, 2012, 3:44:49 AM3/12/12
to Nicolas...@inria.fr

Comment #1 on issue 16 by Nicolas...@gmail.com:
AttributeError: 'module' object has no attribute 'GL_ALPHA32F_ARB'
http://code.google.com/p/glumpy/issues/detail?id=16

What is your video card ?

Alos, can you tell me what are the available gl.GL_ALPHA* constants you
have in your implementation ?


Nicolas

glu...@googlecode.com

unread,
Mar 12, 2012, 3:56:52 AM3/12/12
to Nicolas...@inria.fr

Comment #2 on issue 16 by paxcalpt: AttributeError: 'module' object has no
attribute 'GL_ALPHA32F_ARB'
http://code.google.com/p/glumpy/issues/detail?id=16

Hi Nicolas,

The card is a: Intel HD Graphics 3000
Here are the constants:
GL.GL_ALPHA GL.GL_ALPHA8 GL.GL_ALPHA_SCALE
GL.GL_ALPHA12 GL.GL_ALPHA_BIAS GL.GL_ALPHA_TEST
GL.GL_ALPHA16 GL.GL_ALPHA_BITS GL.GL_ALPHA_TEST_FUNC
GL.GL_ALPHA4 GL.GL_ALPHA_INTEGER GL.GL_ALPHA_TEST_REF

glu...@googlecode.com

unread,
Mar 12, 2012, 4:13:57 AM3/12/12
to Nicolas...@inria.fr

Comment #3 on issue 16 by Nicolas...@gmail.com:
AttributeError: 'module' object has no attribute 'GL_ALPHA32F_ARB'
http://code.google.com/p/glumpy/issues/detail?id=16

You may try with GL.GL_ALPHA16 instead of ALPHA32F but I'm not sure about
the result.

(ALPHA32F is to indicate OpenGL to use 32 bits float internal format (to
get higher precision))


Nicolas


glu...@googlecode.com

unread,
Jun 6, 2012, 5:49:32 PM6/6/12
to Nicolas...@inria.fr

Comment #4 on issue 16 by willpat...@gmail.com: AttributeError: 'module'
object has no attribute 'GL_ALPHA32F_ARB'
http://code.google.com/p/glumpy/issues/detail?id=16

I had the same problem but resolved this by changing GL.GL_ALPHA32_ARB to
GL.GL_ALPHA16 on line 260 in filters.py.

Nicolas, can you tell me what your OpenGL setup is on the Mac that enables
you to use gl.GL_ALPHA32F_ARB?

Like paxcalpt I am also using PyOpenGL 3.0.2a5 on an MBP 8,2 with an AMD
Radeon HD 6750m graphics card with OpenGL version string: 2.1 ATI-7.18.18.

glu...@googlecode.com

unread,
Jun 8, 2012, 9:49:53 AM6/8/12
to Nicolas...@inria.fr
Updates:
Status: Accepted

Comment #5 on issue 16 by Nicolas...@gmail.com:
AttributeError: 'module' object has no attribute 'GL_ALPHA32F_ARB'
http://code.google.com/p/glumpy/issues/detail?id=16

My video card is a NVIDIA one, this may be the main difference.

The "problem" with GL_ALPHA14 is that you're losing some precision but
maybe it is hardly noticeable ?



glu...@googlecode.com

unread,
Aug 17, 2012, 4:10:54 AM8/17/12
to Nicolas...@inria.fr
Updates:
Status: Fixed

Comment #6 on issue 16 by Nicolas...@gmail.com:
AttributeError: 'module' object has no attribute 'GL_ALPHA32F_ARB'
http://code.google.com/p/glumpy/issues/detail?id=16

It has been fixed (see issue 13).

glu...@googlecode.com

unread,
Feb 12, 2013, 8:06:43 AM2/12/13
to Nicolas...@inria.fr

Comment #7 on issue 16 by nathanie...@gmail.com: AttributeError: 'module'
object has no attribute 'GL_ALPHA32F_ARB'
http://code.google.com/p/glumpy/issues/detail?id=16

Not fixed for me I'm afraid. I just downloaded 0.2.1 and get this message
on many of the demo programs.

glu...@googlecode.com

unread,
Feb 26, 2013, 7:09:48 AM2/26/13
to Nicolas...@inria.fr

Comment #8 on issue 16 by tkna...@gmail.com: AttributeError: 'module'
object has no attribute 'GL_ALPHA32F_ARB'
http://code.google.com/p/glumpy/issues/detail?id=16

Second this, I get this error message on many of the demos too.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages