No

Steve Holden steve at holdenweb.com
Tue Feb 21 14:58:44 EST 2006


Fredrik Lundh wrote:
> "Gaz" wrote:
> 
> 
>>OSError: [Errno 2] No such file or directory: 'c:/'
>>      args = (2, 'No such file or directory')
>>      errno = 2
>>      filename = 'c:/'
>>      strerror = 'No such file or directory'
>>
>>Crazy... and if i use c:\, i get a 500 error.
> 
> 
> that's probably because "c:\" is a syntax error:
> 
> 
>>>>"c:\"
> 
>   File "<stdin>", line 1
>     "c:\"
>         ^
> SyntaxError: EOL while scanning single-quoted string
> 
> but since you're getting a "500 error" instead, it sure sounds like you
> forgot to tell us *how* you're running your scripts... (server, platform,
> python version, etc).
> 
The 500 error's almost certainly because the script is failing before it 
emits anything on standard output (I'm presuming that the syntax error 
will appear on standard error, without having checked ...).

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list