On Jul 12, 2006, at 7:51 AM, Michael Glassford wrote: > 2) When I run python (either the one I built, from > /usr/local/bin/python2.4, or the one installed by the universal binary > installer at > /Library/Frameworks/Python.framework/Versions/2.4/python2.4), and > "import appscript", for example, I get this error: > > > """ > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/local/lib/python2.4/site-packages/appscript/ > __init__.py", > line 16, in ? > from specifier import app, CommandError > File "/usr/local/lib/python2.4/site-packages/appscript/ > specifier.py", > line 9, in ? > import aem > File "/usr/local/lib/python2.4/site-packages/aem/__init__.py", line > 25, in ? > from send import * > File "/usr/local/lib/python2.4/site-packages/aem/send/__init__.py", > line 90, in ? > raise RuntimeError, "Can't send Apple events: no access to Window > Manager. (aem-based scripts must be run within a GUI process; e.g. use > 'pythonw', not 'python', if running script in shell)" > RuntimeError: Can't send Apple events: no access to Window Manager. > (aem-based scripts must be run within a GUI process; e.g. use > 'pythonw', > not 'python', if running script in shell) > """ > > If I run /Library/Frameworks/Python.framework/Versions/2.4/ > pythonw2.4, I > get the same error. > > What could make this not work properly?
First of all, the "pythonw2.4" path you list doesn't exist, and second it's not what you're running anyway! Look at the site-packages dir in the exception, that's a normal unix install, not a framework install. You need a framework install (./configure --enable-framework && sudo make frameworkinstall). -bob _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig