Weird problem on WIN platform.. any ideas?

Oleg Orlov orlov at diasoft.ru
Thu Jul 5 06:58:28 EDT 2001


>
> However, when I schedule SQL Server Agent to run the script, the Agent
> reports the following error:
>
> File "C:\scripts\dailygif.py", line 26, in ?
> urlretrieve(gif_url,gif_filename)
> File "c:\python20\lib\urllib.py", line 68, in urlretrieve      return
> _urlopener.retrieve(url, filename, reporthook, data)
> File "c:\python20\lib\urllib.py", line 212, in retrieve      tfp =
> open(filename, 'wb')  IOError: [Errno 2] No such file or directory:
> 'v:\\images\\dailygif\\dailygif.gif'

Hint: LocalSystem account can not access resources outside local computer.

>
> As I said, I'm unable to repeat this error when I run the same script
> from command line. The double slashes in the error-causing file path
> are not of my doing (gif_filename =
> 'v:\images\dailygif\dailygif.gif').
>
> Any help would be greatly appreciated! Thanks.





More information about the Python-list mailing list