On Mon, Sep 01, 2003 at 11:12:02PM -0700, Brian Enigma wrote: > I have seen a number of people on the mailing list archives ask > whether or not Freevo will run on OS X. In my experience, the answer > is: not yet (but your mileage may vary--please let me know if you are > able to get it to run). It looks like there may be a little problem > with pygame (but I have not traced the exact source of the problem > yet). For those that want, I will detail the prerequisite install > instructions, but something in the pygame module is unhappy with the > window manager. If you are going to follow the instructions, be sure > you have a long afternoon available and access to a large pot of > coffee... Also, these instructions are aimed at a power user or > programmer. Maybe someone can flesh out the individual steps if there > is demand.
Well, part of the problem is that even though one of the project developers (me) runs Mac OS X, I've never really had the time or inclination to get it working on a Powerbook :) But I am aware of more OS X things then I would be otherwise. Let me clear up a couple of things: > 1. Apple prerequisites > 1a. Be sure you have Apple's OS X development kit installed. This > should have came with your computer, but you can download it from > http://developer.apple.com if you sign up to be a developer (which is > free). You will need this to to compile smpeg. > 1b. Be sure to install Apple's X11--and not just the runtime, the > development headers. (Go to http://www.apple.com/macosx/x11/download/ > and download the app, then go to the same URL and click the "Download > SDK" in the lower right corner of the page to get the development > headers.) You don't need X11 unless you're using X11 as an output. SDL supports Quartz natively. There isn't much point in using X11 on OS X for this because it's much slower. > 2. Install PyGame prerequisites > 3. Install Python 2.3: > 4. Install PyGame, using the OS X files from Try this instead: http://www.visionegg.org/install-macosx-details.html It should include all of Python 2.3, and pygame and requisites. > 5. Install Python Imaging (this required a little finessing). Take > care to follow the OS X changes. You may have to tweak setup.py to > include /sw/include and /usr/X11R6/include. Python Imaging is also available there. > 6. Install Python Twisted, the "Twisted" project from SourceForge > (sf.net) Yes :) > 7. Edit freevo startup script > 7a. Change "ps -ef" to "ps -e" > 7b. Comment out the "if...else...fi" section involving "stat $0". The > script should only run the line in the "else" clause (export > FREEVO_SCRIPT=`echo $0`) without evaluating the if because OS X has no > "stat" command (and I cannot seem to find one in Fink). Good; though the next release has a number of BSD related changes, which should fix some of these. And 'stat' depends on your shell. If you edit the script to use /bin/bash instead of /bin/sh, it should work. Also, the next major release of OS X (Panther) will include 'bash' as the default shell, and Python 2.3, so some things will be easier. > At this point, Freevo *should* be ready to go, but it is not because of > a bug. When run, you will get the following stack trace: > > Traceback (most recent call last): > File "./src/main.py", line 94, in ? > import osd # The OSD class, used to communicate with the OSD > daemon > File "/Users/enigma/Code/sf/freevo/src/osd.py", line 111, in ? > import pygame > File "/sw/lib/python2.3/site-packages/pygame/__init__.py", line 158, > in ? > raise ImportError, "Can not access the window manager, use > bundlebuilder or execute with the pythonw script" > ImportError: Can not access the window manager, use bundlebuilder or > execute with the pythonw script > > I seem to get the same bug whether I run it in the native Terminal app > or an X11 xterm. Does anyone know what this means? More importantly, > does anyone know how to fix it? Try 'export SDL_VIDEODRIVER=quartz' before running it. X11 is not required for any of this. Fink seems to have even it's python-nox package depending on X11 (which doesn't make much sense, because it's due to a nested dependency from tcltk) As always, if you run into problems, let us know. Aubin ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users
