Help! Can't get program to run.

seanm.py at gmail.com seanm.py at gmail.com
Sat May 2 16:42:03 EDT 2009


On May 2, 4:30 pm, Arnaud Delobelle <arno... at googlemail.com> wrote:
> seanm... at gmail.com writes:
> > sean-marimpietris-computer:~ seanmarimpietri$ python
> > Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
> > [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> python module1.py
> >   File "<stdin>", line 1
> >     python module1.py
> >                  ^
> > SyntaxError: invalid syntax
>
> > Again, any help would be appreciated. Thanks.
>
> From Terminal.app, this should work:
>
> sean-marimpietris-computer:~ seanmarimpietri$ python module1.py
>
> Assuming that your module1.py file is in /Users/seanmarimpietri/
>
> --
> Arnaud

Awesome. Thank you, Arnaud. I moved the file to that folder, and I got
it to work in Terminal. However, I still can't get it to run using
IDLE. Any idea why that might be? Thanks again. -Sean



More information about the Python-list mailing list