Re: [python-win32] pywin32 services

2010-07-21 Thread Tim Roberts
Michael Mileusnich wrote: I figured fname was throwing an exception due to the fact I did not qualify .exe at the end of my command. Regardless, upon further investigation using a simple example such as: ... The service doe not start and gives me the untimely fashion error when

Re: [python-win32] pywin32 services

2010-07-20 Thread Tim Roberts
Michael Mileusnich wrote: My apologies I was incorrect. fname is being set to C:\Program Files\HQSystem\bin\hqmonitor.exe but alas the directory was empty. I corrected this however I still cannot get my services to start. Currently I use an example that invokes

Re: [python-win32] pywin32 services

2010-07-20 Thread Michael Mileusnich
Issues: I figured fname was throwing an exception due to the fact I did not qualify .exe at the end of my command. Regardless, upon further investigation using a simple example such as: The most basic (working) CherryPy 3.1 Windows service possible. Requires Mark Hammond's pywin32 package.

Re: [python-win32] pywin32 services

2010-07-20 Thread Mark Hammond
On 21/07/2010 1:06 PM, Michael Mileusnich wrote: The service doe not start and gives me the untimely fashion error when win32servileutil calls win32service.StartService(hs, None). While pywin32 attempts to catch most errors, that 'untimely fashion' error generally means it failed to do so (or

[python-win32] pywin32 services

2010-07-19 Thread Michael Mileusnich
Hello, 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, inmodule File win32serviceutil.pyc, line 528, in HandleCommandLine File win32serviceutil.pyc, line 468, in GetServiceClassString

Re: [python-win32] pywin32 services

2010-07-19 Thread Vernon Cole
Well, you get that specific error from something like: list1 = ['this is a','list'] anError = list1[2] Traceback (most recent call last): File stdin, line 1, in module IndexError: list index out of range What does the code look like at hqmonitor.py line 220? -- VC On Mon, Jul 19, 2010 at

Re: [python-win32] pywin32 services

2010-07-19 Thread Tim Roberts
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, inmodule File win32serviceutil.pyc, line 528, in HandleCommandLine File win32serviceutil.pyc, line 468,

Re: [python-win32] pywin32 services

2010-07-19 Thread Roberto Aguilar
On Jul 19, 2010, at 5:39 AM, Michael Mileusnich wrote: Hello, 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, inmodule File win32serviceutil.pyc, line 528, in HandleCommandLine

Re: [python-win32] pywin32 services

2010-07-19 Thread Tim Roberts
Michael Mileusnich wrote: This is all local to my C drive. I opened up win32serviceutil and printed out fname and it is the directory where my app is running out of which is on C. It is longer than 8 characters I'm not sure how FindFiles works. FindFiles returns a tuple of interesting