This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: win32serviceutil bug
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: nnorwitz, tgraber_us
Priority: normal Keywords:

Created on 2005-11-08 17:52 by tgraber_us, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg26825 - (view) Author: Tim Graber (tgraber_us) Date: 2005-11-08 17:52
When trying to call service restart or start, the following 
error message is received.  The utility is not handling 
embeded spaces in the SERVICE_NAME.

error:

Traceback (most recent call last):
  File "C:\Python24\Tools\scripts\serviceinfo.py", line 23, 
in ?
    service_info(action, machine, service)
  File "C:\Python24\Tools\scripts\serviceinfo.py", line 11, 
in service_info
    win32serviceutil.RestartService(service, machine)
  File "C:\Python24\lib\site-packages\win32
\lib\win32serviceutil.py", line 409,
in RestartService
    raise win32service.error, (hr, name, msg)
pywintypes.error: (1060, 'OpenService', 'The specified 
service does not exist as
 an installed service.')

Service entry on server using sc query:

SERVICE_NAME: JDEdwards OneWorld XE B733 
Queue
DISPLAY_NAME: JDEdwards OneWorld XE B733 
Queue
        TYPE               : 110  WIN32_OWN_PROCESS  
(interactive)
        STATE              : 4  RUNNING 
                                (STOPPABLE, PAUSABLE, 
ACCEPTS_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
msg26826 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-11-09 06:44
Logged In: YES 
user_id=33168

This bug is in win32all (win32com or whatever the package is
called).  It's not a standard part of Python.  You will need
to file a bug report with whoever distributes the package.
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42569
2005-11-08 17:52:11tgraber_uscreate