PythonService was unable to locate the service manager

Jacob Nolan via python-win32 <[email protected]> Thu, 11 Jan 2024 06:20:16 +0000
Newsgroups gmane.comp.python.windows
Message-ID <0108018cf72db12a-bf384f9a-33b5-4858-8fa5-f2fd05da5cdb-000000@ap-southeast-2.amazonses.com>
This is a multi-part message in MIME format.
--===============6385231482249910559==
Content-Type: multipart/alternative;
 boundary="------------pSTbGv9A1m1AkaulmkeR3E2S"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------pSTbGv9A1m1AkaulmkeR3E2S
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Currently experiencing this issue on my Windows machine when installing 
a Windows Service. This is the error output I get from running in the 
cmd as administrator. Restricting me from being able to run my services.

*- PythonService was unable to locate the service manager. Please see 
the event log for details.**
*


Here is the output from event viewer application log:

|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 |


This issue has happened on each of these version I've tested Python3.11, 
3.10.10 and 3.10.8.

Currently running Python 3.10.8 64 Bit on Windows Server 2016.

- I've installed pywin32

- Run post_install in the root directory of python310

- Installed the service with install flag

- Attempted to start service with start flag

- PythonService was unable to locate the service manager. Please see the 
event log for details.

-- 
*Thanks*
*Jacob*
--------------pSTbGv9A1m1AkaulmkeR3E2S
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Currently experiencing this issue on my Windows machine when
      installing a Windows Service. This is the error output I get from
      running in the cmd as administrator. Restricting me from being
      able to run my services.<br>
    </p>
    <p><b>- PythonService was unable to locate the service manager.
        Please see the event log for details.</b><b><br>
      </b></p>
    <p><br>
    </p>
    <p>Here is the output from event viewer application log:<br>
    </p>
    <pre><code id="code"><span>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.</span>
<span></span>
<span>If the event originated on another computer, the display information had to be saved with the event.</span>
<span></span>
<span>The following information was included with the event: </span>
<span></span>
<span>&lt;Error getting traceback - traceback.print_exception() failed&gt;</span>
<span></span>
<span>The specified resource type cannot be found in the image file</span>
</code></pre>
    <p></p>
    <p><br>
    </p>
    <p>This issue has happened on each of these version I've tested
      Python3.11, 3.10.10 and 3.10.8.</p>
    <p>Currently running Python 3.10.8 64 Bit on Windows Server 2016.</p>
    <p>- I've installed pywin32</p>
    <p>- Run post_install in the root directory of python310</p>
    <p>- Installed the service with install flag</p>
    <p>- Attempted to start service with start flag<br>
    </p>
    <p>- PythonService was unable to locate the service manager. Please
      see the event log for details.<br>
    </p>
    <div class="moz-signature">-- <br>
      <b>Thanks</b></div>
    <div class="moz-signature"><b>Jacob</b><br>
    </div>
  </body>
</html>

--------------pSTbGv9A1m1AkaulmkeR3E2S--

--===============6385231482249910559==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32

--===============6385231482249910559==--