[visionegg] Re: Another Snow Leopard install question

  • From: Tomas Knapen <tknapen@xxxxxxxxx>
  • To: visionegg@xxxxxxxxxxxxx
  • Date: Thu, 18 Aug 2011 00:32:27 +0200

Hi Geoff,

my VisionEgg installation was went as follows, and perhaps this information 
adds something useful.  
Used MacPorts for every dependency of VisionEgg, working from python 2.6 and 
haven't tried to supplement this with anything from a non-macports source for 
as far as I can remember off the top of my head.  
At VisionEgg install I got the same _gl_qt error messages you cite, but since 
they don't impair my visionegg installation (at least for the functionality I 
use) I've just left it at that. Install finished successfully.
The tk problem I also had, but I didn't try to fix it. My workaround is to put 
a 'never invoke gui' set of lines in the VisionEgg.cfg file my experiments use, 
i.e.
VISIONEGG_GUI_INIT = 0
VISIONEGG_GUI_ON_ERROR = 0
I think that's all. You can set all those settings programmatically in your 
script which is my preferred approach of setting things up anyway.  
Also, I have an installation of the eyelink pylink library, working on 64bit 
Snow Leopard and macports. All demos that don't need specialized hardware work 
on my experimental computer, and my computer has no trouble running a large CRT 
at 160Hz for saccade-adaptation experiments.  

In all, my suggestion would be to try the macports route. Thing is, on my 
laptop, after installing lion and updating everything in the macports tree, SDL 
cannot create a fullscreen context - a problem for which a solution is in the 
making (I hope). In the mean time, I'd suggest installing another (older) 
version of the SDL library if you run into that problem.  

Hope this helps.  

Tomas


Tomas Knapen Postdoctoral researcher  
@ Cognitive Neuroscience (http://www.cognitiveneuroscience.nl/) - University of 
Amsterdam  
contact tknapen@xxxxxxxxx (mailto:tknapen@xxxxxxxxx) || +31 20 525 6012 || 
Personal website (http://web.me.com/tknapen/)


On Wednesday, August 17, 2011 at 9:11 PM, Geoff Brookshire wrote:

> Hi everyone,
>  
> It seems like there's a little bit of a precedence for this, so
> hopefully someone will have some insight. I'm in the process of
> setting up a lab to run psychophysics experiments, and having some
> trouble getting vision egg to run on the new Mac computers we have
> (all running Snow Leopard, OS 10.6.8).
>  
> I've tried a couple routes now, and keep arriving at the same error
> message. First, I tried to see if this would work using the Enthought
> python distribution, adding other dependencies as needed, but I kept
> arriving at the same error message:
>  
> Fatal Python error: (pygame parachute) Segmentation Fault
> Abort trap
>  
> I'm not sure what to do about this. What's weird is that pygame works
> on its own.
>  
> But the new Enthought distribution contains python 2.7, and everyone
> here seems to focus on 2.6. So I backed up and used the python 2.6
> that was already on my system and tried again. This time, I used
> MacPorts and easy_install, since people seem to have a lot of success
> with those.
> I used:
> port install py26-game
> easy_install-2.6 PyOpenGL
> easy_install-2.6 PIL
>  
> And then I installed VisionEgg from the source. Although vision egg
> did unpack and can be imported, this error arose:
>  
> WARNING: The _gl_qt extension module to the Vision
>  Egg could not be compiled. The Vision Egg should run, but
>  the features present in that file will not be
>  available.
> (In case anyone's curious, I'll put the warnings that came right
> before this at the end of the email.)
>  
> Since Vision Egg still might run, I tried a couple simple scripts
> anyway. Some yield the same message as before (pygame parachute), but
> some yield other errors. One said that the _tkinter module was
> missing, so I copied it from the enthought directory into
> site-packages for python2.6 (bad idea?), but then the "pygame
> parachute" error re-emerged. In each case, VisionEgg starts and is
> given a process id, but then this cryptic message comes back. Another
> error message (for running the as_el_grid.py demo) crashes because the
> _vegl module is missing.
>  
> Anyone encountered any of these problems before?
>  
> Thanks a bunch!
> Geoff
>  
> (... and sorry for the novel-length question.)
>  
>  
>  
>  
>  
>  
>  
>  
> **** Here is the error message that came just before the warning when
> installing VisionEgg from source. ******
> In file included from VisionEgg/gl_qt.c:27:
> VisionEgg/gl_qt.h:13: error: expected specifier-qualifier-list before ‘Movie’
> VisionEgg/gl_qt.h:35: error: expected ‘)’ before ‘theMovie’
> VisionEgg/gl_qt.c:49: error: expected ‘)’ before ‘theMovie’
> VisionEgg/gl_qt.c: In function ‘gl_qt_renderer_delete’:
> VisionEgg/gl_qt.c:183: error: ‘gl_qt_renderer’ has no member named
> ‘offscreen_gworld’
> VisionEgg/gl_qt.c:183: warning: implicit declaration of function 
> ‘DisposeGWorld’
> VisionEgg/gl_qt.c:183: error: ‘gl_qt_renderer’ has no member named
> ‘offscreen_gworld’
> VisionEgg/gl_qt.c:186: error: ‘gl_qt_renderer’ has no member named
> ‘gl_texel_data’
> VisionEgg/gl_qt.c:186: error: ‘gl_qt_renderer’ has no member named
> ‘gl_texel_data’
> VisionEgg/gl_qt.c:189: error: ‘gl_qt_renderer’ has no member named
> ‘qt_pixel_data’
> VisionEgg/gl_qt.c:189: error: ‘gl_qt_renderer’ has no member named
> ‘qt_pixel_data’
> VisionEgg/gl_qt.c: In function ‘gl_qt_renderer_update’:
> VisionEgg/gl_qt.c:218: error: ‘gl_qt_renderer’ has no member named 
> ‘tex_height’
> VisionEgg/gl_qt.c:219: error: ‘gl_qt_renderer’ has no member named 
> ‘tex_height’
> VisionEgg/gl_qt.c:222: error: ‘gl_qt_renderer’ has no member named
> ‘gl_texel_data’
> VisionEgg/gl_qt.c:222: error: ‘gl_qt_renderer’ has no member named ‘tex_width’
> VisionEgg/gl_qt.c:224: error: ‘gl_qt_renderer’ has no member named ‘tex_width’
> VisionEgg/gl_qt.c:226: error: ‘gl_qt_renderer’ has no member named
> ‘qt_pixel_data’
> VisionEgg/gl_qt.c:226: error: ‘gl_qt_renderer’ has no member named 
> ‘row_stride’
> VisionEgg/gl_qt.c:237: error: ‘gl_qt_renderer’ has no member named ‘tex_width’
> VisionEgg/gl_qt.c:238: error: ‘gl_qt_renderer’ has no member named 
> ‘tex_height’
> VisionEgg/gl_qt.c:241: error: ‘gl_qt_renderer’ has no member named
> ‘gl_texel_data’
>  
> The Vision Egg mailing list
> Archives: //www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html

Other related posts: