[python-win32] Running a Windows Python service without pythonservice.exe?

Mark Hammond mhammond at skippinet.com.au
Sat May 15 02:27:11 CEST 2010


On 15/05/2010 5:06 AM, Bill Janssen wrote:
> Mark Hammond<skippy.hammond at gmail.com>  wrote:
>
>> On 13/05/2010 9:25 AM, Bill Janssen wrote:
>>> Mark Hammond<skippy.hammond at gmail.com>   wrote:
>>>
>>>> Execute 'python nativePipeTestService.py install' to install it, then
>>>> start it as normal (ie, don't run it manually with no args).
>>>
>>> Yes, that's what I tried first.  See my message
>>> <67901.1273677394 at parc.com>, just previous to the one you replied to.
>>
>> Sorry - I missed that 'install' command in that message.
>>
>>> $ sc start PyNativePipeTestService
>>> [SC] StartService FAILED 1053:
>>>
>>> The service did not respond to the start or control request in a timely fashion.
>>>
>>> $
>>>
>>> Same thing if I try to start it from the System Management GUI tool.
>>
>> I'm not sure what the problem could be.  It appears Python is finding
>> all the modules OK and I can't think of why the service request would
>> be failing.  Does the standard old pipeTestService.py still work for
>> you?
>
> No, it fails the same way.  Is there a test suite for PyWin32 that I
> could run to verify my installation is good?

win32\test\testall.py is probably the closest, but it only checks the 
pywin32 implementation and doesn't do much in the way of 'environment' 
checking - indeed, nothing related to services is automatically tested 
at all.

It might be worth checking your windows event log - pythonservice may 
have written something there...

Mark


More information about the python-win32 mailing list