Greetings.

I'm having difficulty using py-appscript after a recent upgrade to 10.6.

I had appscript installed on 10.5, and was using it successfully. With the change to 10.6, Python has changed from 2.5.? to 2.6.1.

Now, when I try to import appscript, I get:

% which python
/usr/bin/python
% python
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from appscript import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named appscript
>>>

If I try to use easy_install to (re-)install appscript, I get:

% sudo easy_install appscript
Searching for appscript
Best match: appscript 0.20.0
Processing appscript-0.20.0-py2.5-macosx-10.5-i386.egg
Adding appscript 0.20.0 to easy-install.pth file

Using /Library/Python/2.5/site-packages/appscript-0.20.0-py2.5- macosx-10.5-i386.egg
Processing dependencies for appscript
Finished processing dependencies for appscript
%

...which appears to be linked to Python 2.5, not 2.6. Googling around doesn't really help very much. Advice includes "easy_install -m appscript" and "easy_install -U setuptools", and though I can read a manpage, this is clearly drifting into the realms of voodoo. I'm slightly surprised that I apparently can't _un_install appscript and start afresh.

I can't see any rele

I have so far managed to remain innocent of exactly how Python manages its libraries. It looks like I'm going to have to get someone to destroy that innocence: what should I be doing here, and why?



I do have the Developer tools installed:

% /usr/bin/gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Thanks for any pointers.

Norman


--
Norman Gray  :  http://nxg.me.uk
Dept Physics and Astronomy, University of Leicester, UK

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to