New issue 342 by kamaldeep.ts: GLError (errorr = 1280) with PyMT 0.5.1
http://code.google.com/p/pymt/issues/detail?id=342
What steps will reproduce the problem?
1. Install PyMT from source with required dependencies
2. Run/Debug an example app
What is the expected output? What do you see instead?
GLError ( err = 1280
description = 'invalid enumerant'
cArguments = (
GL_TEXTURE_2D,
GL_TEXTURE_WRAP_S,
GL_CLAMP_TO_EDGE
)
)
What version of the product are you using? On what operating system?
XP SP3, Nvidia 190.38 driver (OpenGL 3.1 support), Pyopengl 3.0.1, PyMT
0.5.1
Please provide any additional information below.
Stack trace points to pymt/ui/window/__init__.py where it imports OpenGL
from windows system32 location.
File "c:\Python26\Lib\site-packages\pymt\base.py", line 214, in idle
pymt_window.dispatch_event('on_draw')
File "c_accelerate.pyx", line 36, in
pymt.c_ext.c_accelerate.eventdispatcher_dispatch_event
(pymt/c_ext\c_accelerate.c:864)
File "c:\Python26\Lib\site-packages\pymt\ui\window\__init__.py", line
357, in on_draw
w.dispatch_event('on_draw')
File "c_accelerate.pyx", line 36, in
pymt.c_ext.c_accelerate.eventdispatcher_dispatch_event
(pymt/c_ext\c_accelerate.c:864)
File "c_accelerate.pyx", line 57, in
pymt.c_ext.c_accelerate.widget_on_draw (pymt/c_ext\c_accelerate.c:1207)
File "c_accelerate.pyx", line 36, in
pymt.c_ext.c_accelerate.eventdispatcher_dispatch_event
(pymt/c_ext\c_accelerate.c:864)
File "c:\Python26\Lib\site-packages\pymt\ui\widgets\scatter.py", line
448, in on_draw
super(MTScatter, self).on_draw()
File "c_accelerate.pyx", line 54, in
pymt.c_ext.c_accelerate.widget_on_draw (pymt/c_ext\c_accelerate.c:1137)
File "c:\Python26\Lib\site-packages\pymt\ui\widgets\scatter.py", line
517, in draw
self.image.draw()
File "c:\Python26\Lib\site-packages\pymt\core\image\__init__.py", line
246, in draw
drawTexturedRectangle(texture=self.texture, pos=imgpos,
size=(self.size[0] * self.scale, self.size[1] * self.scale))
File "c:\Python26\Lib\site-packages\pymt\core\image\__init__.py", line
237, in texture
return self.image.texture
File "c:\Python26\Lib\site-packages\pymt\core\image\__init__.py", line
71, in _get_texture
mipmap=self._texture_mipmap)
File "c:\Python26\Lib\site-packages\pymt\texture.py", line 278, in
create_from_data
mipmap=mipmap)
File "c:\Python26\Lib\site-packages\pymt\texture.py", line 242, in create
texture.wrap = GL_CLAMP_TO_EDGE
File "c:\Python26\Lib\site-packages\pymt\texture.py", line 190, in
_set_wrap
glTexParameteri(self.target, GL_TEXTURE_WRAP_S, wrap)
File "c:\Python26\Lib\site-packages\OpenGL\error.py", line 208, in
glCheckError
baseOperation = baseOperation,
GLError: GLError(
err = 1280,
description = 'invalid enumerant',
baseOperation = glTexParameteri,
cArguments = (
GL_TEXTURE_2D,
GL_TEXTURE_WRAP_S,
GL_CLAMP_TO_EDGE,
)
)
Note: I remember previously seeing this error in the portable version of
PyMT when I had not installed the PyOpenGL dependency. Installing PyOpenGL
3.0.1 had resolved this issue.
Just checking to see of this was seen as a defect worth looking into.
I will also try to give it a second pass.
Thanks
This error indicate that GL_CLAMP_TO_EDGE is not supported. You need 2.0
minimum OpenGL driver. You can know which version is used in the log.
I know you've installed the Nvidia 190 drivers, still, it look like it's
not available for software ? Or the old is still here :/