Interpreter problem

Steve Holden steve at holdenweb.com
Fri Apr 8 11:26:58 EDT 2005


rbt wrote:
> 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.

What, you are telling me you've checked the file with a command like

   head driver.py | od -bc

and verified the absence of any extraneous characters?

regards
  Steve
-- 
Steve Holden        +1 703 861 4237  +1 800 494 3119
Holden Web LLC             http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/




More information about the Python-list mailing list