How do you install GASP on OS X?

Asked by mehum

Sorry... rather lost here... I've just started using Jeffrey Elkner, Allen B. Downey and Chris Meyers' "Learning with Python" which makes use of GASP: <>

I have tried a few ways to install it on this system running Python 2.5 / Mac OS 10.5, using the gasp-dev.tar on this site and also the python egg at <> via easy_install

I do not know how to use the gasp_dev package by itself. Just copying it (per the Cygwin instructions) seemed to have no effect.

The python egg generated many error messages and warnings as easy_install processed it. It also did not produce a noticeable result.

I tried the Ubuntu instructions at ie "sudo apt-get install python-gasp", but bash returned "E: Couldn't find package python-gasp"

Nothing works, and I cannot find installation instructions anywhere. Is there an installation procedure? Do I need pygame installed? I would be gratefully for any assistance.

Question information

English Edit question
GASP Core Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Luke Faraone (lfaraone) said :

ffm suggests this article as an answer to your question:
FAQ #42: “How do you install GASP on OS X?”.

Revision history for this message
Robert Layne (robert-layne) said :

Well everybody, sorry for the incomplete sentences and overall poor English but I wanted to make this simple to read and understand for someone who is completely inexperienced in any sort of programming, as I am (very first day messing with this stuff, e.g., terminal). This is the result of hours of Googling that was all done in one day. Perhaps someone who is familiar with the commands below (in bold) wouldn’t mind explaining what exactly is taking place. Additionally, this was all done in terminal on a MacBook Pro running Mac OS Lion.

1. Install macport binary (comes with installer; easy)
2. sudo port install py-game
     a. not sure if this is necessary, as it doesn’t appear to cause pygame to be functional
        for python version 2.7.1 (stock python on lion)
3. sudo port select --set python python 2.7
     a. I believe this set the default python version to 2.7.2 which I also believe was
        downloaded during step 2 (therefore why I think this ends up being a necessary step)
4. Download setuptools-0.6c11-py2.7.tar
5. In folder gasp-0.3.4, which appears after clicking on the .tar, place in the
        gasp folder
6. sudo python gasp/ install
     a. make sure your directory is the folder gasp-0.3.4
7. sudo port –v install py27-gtk
     a. takes about an hour for this step to complete
8. sudo port uninstall py-game
     a. this step is not necessary for gasp to work; I simply didn’t want any unnecessary
        stuff on my computer that was downloaded during the second step; however, this step
        put python 2.7.2 on my computer; could install 2.7.2 separately I guess but this way
        worked for me; a lot of other unnecessary stuff is installed during this step too but
        I think it’ll remain even after this command, oh well

Can you help with this problem?

Provide an answer of your own, or ask mehum for more information if necessary.

To post a message you must log in.