GLError: <unprintable GLError object>

Hi all, I am new to programming with Python. My program runs successfully to a point however I am getting an error thrown after a number of iterations:
GLError: <unprintable GLError object>

Traceback (most recent call last):
File “C:\Users\u276181\Documents\Python\justin3-AA.py”, line 423, in <module>
exp.blocks[0].trials[trial].stimuli[5].preload() -
File “C:\Python26\lib\site-packages\expyriment\stimuli\base.py”, line 546, in preload
self.ogl_screen.refresh()
File “C:\Python26\lib\site-packages\expyriment\stimuli\base.py”, line 217, in refresh
self._txtr = Visual._load_texture(self._surfTotal)
File “C:\Python26\lib\site-packages\expyriment\stimuli\base.py”, line 112, in _load_texture
ogl.GL_RGBA, ogl.GL_UNSIGNED_BYTE, textureData)
File “C:\Python26\lib\site-packages\OpenGL\latebind.py”, line 41, in call
return self._finalCall( *args, **named )
File “C:\Python26\lib\site-packages\OpenGL\wrapper.py”, line 791, in wrapperCall
raise err
GLError: <unprintable GLError object>

Can anyone advise please?

Thanks,
Justin

Ok, so maybe I havnt provided adequate information, but I really need help with this problem. Since I thought it may be a memory allocation error I tried calling gc.collect() to try and force-free-up some memory but this didnt fix the problem. I also get the error message:

Traceback (most recent call last):
File “C:\Users\u276181\Documents\Python\justin3-AA.py”, line 436, in <module>
exp.blocks[0].trials[trial].stimuli[5].preload() -
File “C:\Python26\lib\site-packages\expyriment\stimuli\base.py”, line 544, in preload
position=self.position)
File “C:\Python26\lib\site-packages\expyriment\stimuli\base.py”, line 180, in init
self.clear()
File “C:\Python26\lib\site-packages\expyriment\stimuli\base.py”, line 189, in clear
(powerOfTwo, powerOfTwo), pygame.SRCALPHA, 32).convert_alpha()
error: Out of memory

on some occasions. Any ideas?

Thanks,
justin

Hard to say, it seems it depends on the wrapper you use ? Is that PyOpenGL ?