Python服务安装 - “找不到PythonClass条目”
我正在搭建一个Python服务。我遇到了一个错误,但我不太确定是什么导致了这个错误。
PS C:\...> python .\file.py debug
Debugging service MYSERVICE - press Ctrl+C to stop.
Error 0xC00000F4 - Could not find the service's PythonClass entry in the registry
Error 1814 - The specified resource name cannot be found in the image file.
Error 0xC0000080 - Could not locate the module name in the Python class string (ie, no '.')
这个错误是来自PythonWin32中的PythonServiceMessages.mc。
2 个回答
1
结果发现,这个错误是因为出现了一个异常,导致Python脚本崩溃了。
11
今天我也遇到了同样的错误。经过5个小时的各种尝试,问题竟然是服务名称里有一个空格。