[visionegg] Re: pygame OSX

It took me a while to get this figured out as well.  I'm not at my machine right
now, so this is just from memory...

For whatever reason, in order for python scripts to have access to the "window
manager" (read: Aqua display), the python executable has to be called with the
full path.  If you look in /usr/bin/pythonw, you'll see that it's a simple
shell script that does exactly that.

So to test that PyGame installed,type "pythonw".  Once in the python
interpreter, type "import pygame".  If it's installed correctly, you won't get
an ImportError.

To run the "check-config.py" script with pythonw, type "pythonw
check-config.py".  This should work.

Feel free to speak up if I've made any errors...

Nick Knouf
Lab Manager, Kanwisher Lab

PS  There can be issues as well if you use the "fink" package management system,
which may install its own version of python.  If that happens, that executable
will likely be called instead of the one provided by Apple.  You can make
VisionEgg work with the fink version of python (I did it a while back), but
it's not pretty.

Quoting Alex Holcombe <HolcombeA@xxxxxxxxxxxxx>:

> Hi Daniel,
> 
> in my failed attempt to get visionegg to work on OSX, I believe I got the
> same
> error.  I thought I'd let everyone know it's not just you!
> 
> 
> >>> kapingd@xxxxxxxxxxxxxx 04/06/04 1:54 AM >>>
> 
> osx 10.3 
> when I run check-config.py I get this error (while the pachage-manager shows
> 
> that I have installed pygame): 
> 
> Version checklist:
> 
> Python version 2.3 (OK)
> extra Python info: (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple 
> Computer, Inc. build 1495)]
> Numeric version 23.1 (OK)
> PyOpenGL (package "OpenGL") version 2.0.1.07 (OK)
> pygame failed: exceptions.ImportError Can not access the window manager, use
> 
> bundlebuilder or execute with the pythonw script
> Python Imaging Library (package "Image") version 1.1.4 (OK)
> 
> 
> 
> ----------------------------------------------------------------------------
>                             Daniel Kaping
>                         kapingd@xxxxxxxxxxxxxx
>                     daniel.kaping@xxxxxxxxxxxxxxxx
>                        http://kapingd.spymac.net
>                      Department of Psychology / 296   
>                        University of Nevada, Reno          
>                            Reno NV 89557
>                       775-784-6828 ext 2021 (lab)
> ----------------------------------------------------------------------------
> ======================================
> The Vision Egg mailing list
> Archives: http://www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html
> ======================================
> The Vision Egg mailing list
> Archives: http://www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html
> 



======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: