[python-win32] pywin32 services

Tim Roberts timr at probo.com
Tue Jul 20 00:41:24 CEST 2010


 Michael Mileusnich wrote:
>
> I am trying to run my app as a windows service however I run
> into the following problem:
>
> Traceback (most recent call last):
>   File "hqmonitor.py", line 220, in<module>
>   File "win32serviceutil.pyc", line 528, in HandleCommandLine
>   File "win32serviceutil.pyc", line 468, in GetServiceClassString
> IndexError: list index out of range

It's trying to find the full path name of the script, but the call to
fetch the directory entry seems to have failed.  Is it possible your
script lives on a network share?  Services run in a special user account
that doesn't know anything about your network shares.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list