Menu

#704 Win32 Service fails to start with Error 1: Incorrect function when using Pywin32-219

v1.0 (example)
open
nobody
5
2015-11-06
2015-10-09
Iraklis D.
No

Hello. I've attempted to create a Win32 Service using the library but I get an error when trying to start the service with python <filename>.py start or via the SCM. The python <filename>.py install command and the python <filename>.py start always succeed regardless of version. If I use the previous version the service installs, starts and works as expected. Using latest version of Python 2.7.10 x64 in Windows 7 N Pro x64.

Discussion

  • Iraklis D.

    Iraklis D. - 2015-10-09

    The python <filename>.py install command and the python <filename>.py start always succeed regardless of version. => The python <filename>.py install command and thesc.exe delete <service_name> always succeed regardless of the pywin32 version used.

     
  • Iraklis D.

    Iraklis D. - 2015-11-06

    I don't really know why but when installing via wheels (using virtualenvs) by using pywin32-Build 219 of Christoph Gohlke it installs correctly and properly. Otherwise I'm facing the referred issue. In addition, sometimes the win32com does not register properly when using the installer but that is another issue.
    You may close this if you want but I can send you more information if required :)

    P.S.: Really, the exe installer is sometimes buggy although your library is superb! :)
    Thanks, in any case :D