How do I make python test.py work without a syntax error msg?

Sergey Smirnov smirnoffs at gmail.com
Thu Aug 19 16:15:19 CEST 2010


I see.
Your script begins with a string:

$ python test.py

It's not a valid python code. Maybe you just copied this text to your script
accidentally. Try to delete the first string. Can you send a few first
strings of your script?


On Thu, Aug 19, 2010 at 17:05, Agida Kerimova <agidak at gmail.com> wrote:

> this is what it looks like
>
>
> On Thu, Aug 19, 2010 at 7:01 PM, Agida Kerimova <agidak at gmail.com> wrote:
>
>> Hi, I don't know how to work in a non bash console... I typed python in a
>> terminal window and all but it didn't work...
>>
>>
>>
>>
>>
>>
>> On Thu, Aug 19, 2010 at 5:53 PM, Sergey Smirnov <smirnoffs at gmail.com>wrote:
>>
>>>  *when I actually *
>>>
>>> *type it I get an error msg*
>>>
>>> Did you type python commands in a bash console? In case you did, you
>>> should run python interactive console instead. Just type python in terminal
>>> window and than you'll be able interactively run statements.
>>>
>>> If you have your script saved in a file, for instance, script.py, to run
>>> it on your Mac you should type:
>>> $ python script.py
>>>
>>> It would be easier to understand you if you'll post errors messages here.
>>>
>>> --
>>> http://mail.python.org/mailman/listinfo/python-list
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100819/a5db1e4f/attachment.html>


More information about the Python-list mailing list