Python服务安装 - “找不到PythonClass条目”

时间:2011-01-31 22:53:28

标签: python windows interop pywin32

我正在构建一个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 个答案:

答案 0 :(得分:3)

今天有同样的错误。经过5小时的尝试,问题是服务名称中有空格。

答案 1 :(得分:0)

事实证明,此错误结果是由抛出异常和Python脚本消失引起的。