Newbie Q: Pythin scripting

Bart Meerdink bmeerdnk at telekabel2.nl
Fri Aug 11 14:45:18 EDT 2000


> Consider me a newbie, but I have the following problem. When I make a 
script
> to run under bash, the first line that I make is :

>     #! /usr/bin/python

> but then after trying ./scriptfile bash comes back with "bash: 
./scriptfile:
> No such file or directory.". When I do it like this:

>   #! /usr/bin/env python

> like the module mailbox.py does, it comes back with: ": No such file or
> directory"

> I know about chmod u+x, and I know about paths etc. I just can't figure
> this one out.

Just on the off-chance you're having the same problem I had combining Windows 
and Linux (with VMWare): are you sure you're using the right kind of line 
terminators? <cr>+<lf> (Windows) does not work if <lf> (Linux) is required. 
Even using Winzip under Windows to unzip could cause such problems.

Bart Meerdink



More information about the Python-list mailing list