Interpreter problem

rbt rbt at athop1.ath.vt.edu
Fri Apr 8 10:47:06 EDT 2005


Steve Holden wrote:
> Greg Lindstrom wrote:
> 
>> I am using python 2.3.5 on a Linux system and have an odd problem 
>> dealing with the 'sha-bang' line.  I have a file, driver.py which 
>> starts with
>>
>> #!/usr/bin/python
>>
>> and works fine (that is, when I type in ./driver.py at the command 
>> prompt the file runs as expected).  I have another file, 
>> myotherfile.py which starts with the exact same line 
>> (#!/usr/bin/python) but I get
>>
>> : bad interpreter: No such file or directory
>>
> There's almost certainly a carriage return as well as a newline in the 
> shebang line.
> 
> [...]
> 
> regards
>  Steve

Not so. I get the same result with python 2.3 and 2.4 on Debian Linux 
Testing. Nothing odd at all in the shebang.



More information about the Python-list mailing list