Dewey V. Schorre wrote:

> I began by installing py-appscript like this:
>
>       macpro-administrators-computer:~ val$ sudo easy_install appscript
>       . . .
>       Finished processing dependencies for appscript
>       macpro-administrators-computer:~ val$
>
> I thought that had worked, so I began the tutorial like this:
>
>       macpro-administrators-computer:~ val$ python
>       . . .
>       >>> from appscript import *
>       Traceback (most recent call last):
>       File "<stdin>", line 1, in <module>
>       ImportError: No module named appscript
>       >>>
>
> Why did it say "No module named appscript"? How can I get this to  
> work?


Do you have more than one copy of Python installed? If so, make sure  
that you've installed setuptools for the Python interpreter you're  
currently using.

e.g. Leopard ships with Python 2.5.1 a copy of easy_install at /usr/ 
bin, but if you use a different Python installation then then you'll  
need to install setuptools for that yourself as the existing  
easy_install only works for Apple's Python.

HTH

has
-- 
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

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

Reply via email to