In article <blu0-smtp133c2a88bf0e45a93ccf2d3c3...@phx.gbl>, Paul Patterson <paz...@hotmail.com> wrote:
> I'm trying to install py-appscript to work with Python 3.1. My first attempt > didn't exactly fail, rather py-appscript installed itself to work with the > version of Python pre-installed on my computer (Python 2.6 on macbook pro > running snow leopard). In an effort to get it working with 3.1, I then > downloaded distribute 0.6.19 and appscript 1.0, moved them both to the > directory where python 3.1 is installed. I installed distribute then tried > to install appscript. After spewing out a ton of error messages, it ended > with the line > "error: command 'gcc-4.0 failed with exit status 1". > > Thinking it maybe had something to do with gcc (though I've no idea what gcc > is), I ran the command: > export CC=/usr/bin/gcc-4.0 > Unfortunately It still didn't work and returned another error message (see > attachment for screenshot). > > Can anyone tell me what my next step should be? If you are using a python.org Python 3.1 and have installed Distribute properly, you should be able to use it by ensuring that the Python 3 bin directory is on your shell PATH. One way to do that, temporarily for one terminal session, is to enter the following: export PATH=/Library/Frameworks/Python.framework/Versions/3.1/bin:"$PATH" then you should be able to install Appscript with: easy_install-3.1 appscript Because py-appscript includes a C extension module, you need to ensure that you have the Apple Developer Tools package (aka Xcode) installed. For OS X 10.6 (Snow Leopard) there are two versions of Xcode available: the original Xcode 3 which should have come with your Mac's install DVD or with the retail copy of Snow Leopard. If not, it can be downloaded (after free registration) from the Apple Developer Connection website. There is also a newer Xcode 4, which is somewhat experimental for Snow Leopard but is standard on OS X 10.7, Lion. Be aware that Python 3.1 is already obsolete and in security fix mode only. Python 3.2.1 is current and 3.2.2 is scheduled to be released this weekend. If you are using the standard python.org Python 3.1 installer, you will likely have problems installing packages like appscript if you have installed Xcode 4 and you will definitely have problems if you upgrade to Lion. For all of these reasons unless you have a specific need to stick with 3.1, I would strongly urge you to, instead, install the latest 64-bit/32-bit installer for Python 3.2 (a 3.2.2 installer should be available by Monday or so): http://www.python.org/download/ That will work fine with either Xcode 3 or Xcode 4 and either Snow Leopard or Lion. You'll need to reinstall Distribute for it. And just change the "3.1" to "3.2" in the "export" command above. -- Ned Deily, n...@acm.org _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG