none
Python 3.7 script as windows service

    Pertanyaan

  • I don't even know where to ask my question.

    I have a Python script that must work as service in Windows 10/Windows Server 2012. Code works fine without code block for running as service.

    I've installed service, but can't run it.

    If I'm trying to run it with command python pyxlsql.py start 

    Debugging service pyXLSQL - press Ctrl+C to stop.

    Error 0xC0000003 - The instance's SvcRun() method failed

    <Error getting traceback - traceback.print_exception() failed

    (null): (null)

    From IDE IntelliJ:

    servicemanager.StartServiceCtrlDispatcher()
    pywintypes.error: (1063, 'StartServiceCtrlDispatcher'

    From services.msc 

    code error 1053

    Is it better to make an exe package first and then install it?


    Selasa, 30 Oktober 2018 19.44

Semua Balasan

  • Hi,

    thanks for posting here.

    This forum is about desktop application development with Microsoft products. For your case, I suggest you post on Python forum for better support.

    https://www.python.org/community/forums/

    Your understanding and cooperation will be grateful.

    Best Regards,

    Baron Bi


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Rabu, 31 Oktober 2018 01.34