How do you install GASP on OS X?

Asked by mehum on 2008-01-02

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: <http://www.ibiblio.org/obp/thinkCSpy/chap04.html#auto10>

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 <http://pypi.python.org/pypi/gasp/0.4.5> 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 http://dc.ubuntu-us.org/projects/gasp/ 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

Language:
English Edit question
Status:
Answered
For:
GASP Core Edit question
Assignee:
No assignee Edit question
Last query:
2008-01-02
Last reply:
2011-09-21
Luke Faraone (lfaraone) said : #1

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

Robert Layne (robert-layne) said : #2

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 setup.py in the
        gasp folder
6. sudo python gasp/setup.py 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.