Windows 错误 PythonService 无法找到服务管理器

问题描述 投票:0回答:1

当前在我的 Windows 计算机上安装 Windows 服务时遇到此问题。这是我以管理员身份在 cmd 中运行时得到的错误输出。限制我运行我的服务。

  • PythonService 无法找到服务管理器。详情请参阅事件日志。

以下是事件查看器应用程序日志的输出:

The description for Event ID 14 from source Python Service cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

<Error getting traceback - traceback.print_exception() failed>

The specified resource type cannot be found in the image file

我测试过的Python3.11、3.10.10和3.10.8的每个版本都发生了这个问题。

当前在 Windows Server 2016 上运行 Python 3.10.8 64 位。

  • 我已经安装了pywin32

  • 在python310根目录运行post_install

  • 使用安装标志安装服务

  • 尝试使用启动标志启动服务

  • PythonService 无法找到服务管理器。详情请参阅事件日志。

python service pywin32
1个回答
0
投票

我也遇到了这个确切的错误,但使用的是 Python 3.11。我已经完成了经典的 pywin32 故障排除。

我目前唯一的想法是与同一服务器上的 Python 3.7 安装存在某种形式的冲突,但到目前为止还没有产生任何结果。您成功解决问题了吗?

© www.soinside.com 2019 - 2024. All rights reserved.