>>>>> beegee beegee <beege...@gmail.com> (bb) wrote: >bb> Hi All, I have a mac mini mac os 10.4.11. I also have aquamac for an >editor. >bb> I have some simple programs stored in text files. and I try to run >bb> them using aquamac, but I get the following error message >bb> steps taken: >bb> launch aquamacs >bb> File -> new buffer in new window >bb> File ->new buffer in mode python >bb> Python-> start interpreter
>bb> >>> python first.py >bb> File "<stdin>", line 1 >bb> python first.py >bb> ^ >bb> SyntaxError: invalid syntax >>>>> >bb> I would like to know if this is a case of files not being seen by the >bb> python interpreter or what could be done The Python interpreter expects a Python statement or expression, like 2+3 or print "Hello world". `python first.py' is not a python command nor an expression but a shell command. So you have to issue this in a shell. You can create a shell in Aquamacs by typing `ESC x shell' (without the quotes). Another possibility, after Python-> start interpreter, is Python->Execute Buffer. For small snippets of code this may be easier, but for complete programs the shell method may be better. A shell can also be run outside of Aquamacs with the Terminal application. -- Piet van Oostrum <p...@cs.uu.nl> URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4] Private email: p...@vanoostrum.org _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig