Error while starting python windows service executable

你说的曾经没有我的故事 提交于 2020-05-15 04:50:44

问题


I am trying to make a python windows service as instructed from
https://www.thepythoncorner.com/2018/08/how-to-create-a-windows-service-in-python/ The service installed directly from python console runs just fine.
but when I make the executable file (for server without python environment) by auto-py-to-exe and install via command prompt it installs but gave this error

windows_service.exe install
Installing service TestService
Changing service configuration
service Updated

windows_service.exe start
Starting service TestService
Error starting service : The service did not respond to the start or control request in timely fashion

windows_service.exe debug


AttributeError: module "servicemanager" has no attribute 'debugging'

This error only occurs when .py script converted into .exe

来源:https://stackoverflow.com/questions/59467171/error-while-starting-python-windows-service-executable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!