Python20 does'nt work in a DOS-Box

Fredrik Aronsson d98aron at dtek.chalmers.se
Wed Sep 27 17:17:41 EDT 2000


I think you can get that error when python doesn't recognize 
an end of line character. In some cases I've noticed that DOS and 
Windows have different end of line characters.

Just-guessing-ly yours,
Fredrik

In article <U_pA5.980$jk1.69271 at newsc.telia.net>,
	"Fredrik Lundh" <effbot at telia.com> writes:
> Wester wrote:
>> I installed Python2.0b2. When I start it in a DOS-Box following happens:
>> 
>> >>> import sys <RET>
>>    File "<stdin>", line 1
>>    import sys
>>                   ^
>> SystaxError: invalid syntax
>> >>>
> 
> SystaxError?  did you cut and paste that error message?
> 
> if not, maybe you accidentally typed space (or tab) before the
> "import" statement:
> 
>    >>>  import sys
>       File "<stdin>", line 1
>         import sys
>         ^
>     SyntaxError: invalid syntax
>    >>>
> 
> </F>
> 
> 




More information about the Python-list mailing list