mike chambers | about

Running the SE|PY ActionScript editor on OS X

Saturday, February 14, 2004

I have put together a step by step guide to getting the [SE PY]1 ActionScript editor to run on OS X.

Make sure that you have python installed by running the following command in the terminal:

If you get an error that it cannot be found go to http://www.python.org and download the source. Follow the directions from the site to compile and install it.

Make sure to follow the directions in Mac/OSX/README. This is required if you want to create apps created with Python (including SE PY).

Here are the commands I used to compile Python from the source on OS X

./configure -enable-framework  
sudo make frameworkinstall </li> </ul> </li>
Download the source for the SE PY editor:

Via the DevSource from the project page.

Via CVS with the following two commands (this will have the most up to date code):

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/SE|PY login  
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/SE|PY co SciTE

switch to the root directory for the source and try to run the program:

pythonw main.pyw 

If you get an error about the pyRXP library missing, then you need to install the library.

Download the source.

Switch to the root of the pyRXP library source and run

python setup.py build 

If you are using the default OSX install of python, you may get errors that it can’t find the python header files (if you built and isntalled python yourself you shouldnt get these errors).

Open setup.py, and look for a line like this:


I edited it to include the python header files directory:

include_dirs=[RXPDIR, "/Developer/SDKs/MacOSX10.3.0.sdk/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/"]


python setup.py build

Ff you don’t get any errors, then run:

python setup.py install 

The library should now be installed.

If you get an error that pythonw cannot be found:

Check and see if /usr/local/bin/pythonw exists. If it does Add /usr/local/bin to your path, or call python with the complete path /usr/local/bin/python.

If it is not there, you need to install the wxPython library. I suggest that you install the binaries as I was not able to get the source to compile.

If you built python yourself or if you are using OS X 10.2 or lower, use this file.

Otherwise, use this file.

You can now try to run SE PY by switching back to the directory with the source code and typing:
pythonw main.pyw
You should now be able to load and run SE PY. If you have any questions or problems post them in the comments. If you want to contribute to the development of SE PY then you can join the development mailing list.
twitter github flickr behance