all python windows service can not start{error 1053}

Had the same problem using pypiwin32 (version: 220) and python (version: 3.6). I had to copy :

"\Python36-32\Lib\site-packages\pypiwin32_system32\pywintypes36.dll"

to

"\Python36-32\Lib\site-packages\win32"

for the service to start (was working in debug mode)


If:

  • python your_service.py debug works, whilst
  • python your_service.py install + start it as a service fails with error 1053,

this command may help python C:\Python27\Scripts\pywin32_postinstall.py.


all my python coded windows service cannot run on my computer.

but all of them can start at our dev-server which means my code is correct.

but i found a alternative solution, run in debug mode:

any_service.py debug