Hi John, Thanks for the bug report. On Ubuntu 8.04, I can reproduce this with PyOpenGL 3.0.0b6, but it is not present with PyOpenGL 2.0.1.09. I can workaround it by changing VisionEgg/Core.py line 475 to "if 0:" (from "if gl_version >= '1.2' and hasattr(gl,'GL_BGRA'):"). I'm going to dig deeper and determine if this is a bug with PyOpenGL or the VE, but in the meantime, that's hopefully enough for you to move on. I'll report it if it's a bug with PyOpenGL and fix it if it's a bug with the VE. -Andrew John Christie wrote: > HI, > > I think I've tried all the other demos but multi_stim. > > visionegg 1.1.2 > numpy 1.2.1 > pyopengl 3.0.0b8 > > Mac OS X 10.5.6 > > > DC397:visionegg-1.1.2 demos jc$ python multi_stim.py > 2009-02-02 16:39:01,190 (12012) INFO: Script multi_stim.py started > Vision Egg 1.1.2 with process id 12012. > 2009-02-02 16:39:06,581 (12012) INFO: Requesting window 640 x 480 32 bpp > (8 8 8 0 RGBA). > 2009-02-02 16:39:06,678 (12012) INFO: OpenGL 1.2 APPLE-1.5.36, Intel GMA > X3100 OpenGL Engine, Intel Inc. (PyOpenGL 3.0.0b8) > 2009-02-02 16:39:06,678 (12012) INFO: Video system reports 32 bpp (8 8 8 > 8 RGBA). > 2009-02-02 16:39:07,446 (12012) CRITICAL: Traceback (most recent call > last): > File "multi_stim.py", line 216, in <module> > framebuffer_copy_texture = Texture( > texels=screen.get_framebuffer_as_image(format=gl.GL_RGBA) ) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/visionegg-1.1.2-py2.5-macosx-10.3-fat.egg/VisionEgg/Core.py", > line 441, in get_framebuffer_as_image > size=size, > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/visionegg-1.1.2-py2.5-macosx-10.3-fat.egg/VisionEgg/Core.py", > line 488, in get_framebuffer_as_array > fb_array = Numeric.reshape(fb_array,(size[1],size[0],4)) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy-1.2.1-py2.5-macosx-10.3-fat.egg/numpy/oldnumeric/functions.py", > line 97, in reshape > return np.reshape(a, shape) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy-1.2.1-py2.5-macosx-10.3-fat.egg/numpy/core/fromnumeric.py", > line 145, in reshape > return reshape(newshape, order=order) > ValueError: total size of new array must be unchanged > > Traceback (most recent call last): > File "multi_stim.py", line 216, in <module> > framebuffer_copy_texture = Texture( > texels=screen.get_framebuffer_as_image(format=gl.GL_RGBA) ) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/visionegg-1.1.2-py2.5-macosx-10.3-fat.egg/VisionEgg/Core.py", > line 441, in get_framebuffer_as_image > size=size, > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/visionegg-1.1.2-py2.5-macosx-10.3-fat.egg/VisionEgg/Core.py", > line 488, in get_framebuffer_as_array > fb_array = Numeric.reshape(fb_array,(size[1],size[0],4)) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy-1.2.1-py2.5-macosx-10.3-fat.egg/numpy/oldnumeric/functions.py", > line 97, in reshape > return np.reshape(a, shape) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy-1.2.1-py2.5-macosx-10.3-fat.egg/numpy/core/fromnumeric.py", > line 145, in reshape > return reshape(newshape, order=order) > ValueError: total size of new array must be unchanged > DC397:visionegg-1.1.2 demos jc$ > > > ====================================== > The Vision Egg mailing list > Archives: //www.freelists.org/archives/visionegg > Website: http://www.visionegg.org/mailinglist.html -- Dr. Andrew D. Straw California Institute of Technology http://www.its.caltech.edu/~astraw/ ====================================== The Vision Egg mailing list Archives: //www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html