win32serviceutil won't start

kyosohma at kyosohma at
Sun Nov 25 22:52:35 CET 2007

On Nov 25, 2:40 pm, Nikola Skoric <nick-n... at> wrote:
> I have a very simple win32serviceutil script:
> import win32serviceutil, time
> win32serviceutil.StartService("burek", "localhost")
> time.sleep(10)
> exit()
> It successfuly imports win32serviceutil, and chokes on StartService:
> Traceback (most recent call last):
>   File "", line 3, in ?
>     win32serviceutil.StartService("burek", "localhost")
>   File "C:\Python24\Lib\site-packages\win32\lib\", line
> 399, in StartService
>     hs = SmartOpenService(hscm, serviceName, win32service.SERVICE_ALL_ACCESS)
>   File "C:\Python24\Lib\site-packages\win32\lib\", line
> 76, in SmartOpenService
>     return win32service.OpenService(hscm, name, access)
> pywintypes.error: (1060, 'OpenService', 'The specified service does not
> exist as an installed service.')
> What does that mean?
> --
> "Now the storm has passed over me
> I'm left to drift on a dead calm sea
> And watch her forever through the cracks in the beams
> Nailed across the doorways of the bedrooms of my dreams"

Looks like Microsoft thinks you mis-spelled it.

I would check and see if that service is installed on your PC. You can
go to Start --> Run and type services.msc

Scroll through there and see if your service is listed. You might
check to see if you can enable/disable it via that console as well.


More information about the Python-list mailing list