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

Python服务安装-“;找不到PythonClass条目“;,python,windows,interop,pywin32,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

我正在构建一个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。

结果表明,此错误是由引发异常和Python脚本关闭引起的

这个错误结果是由抛出异常和Python脚本关闭引起的

今天也犯了同样的错误。尝试了5个小时后,问题是服务名称中有一个空格

今天也犯了同样的错误。尝试了5个小时后,问题是服务名称中有一个空格

file.py中有什么?代码请你做了什么来解决这个问题?我也有同样的问题。file.py中有什么?代码请你做了什么来解决这个问题?我也有同样的问题。