pythonservice -register

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Olaf Meding

    pythonservice -register

    What is the pythonservice.e xe for? What does pythonservice.e xe really
    do?

    I installed and am using ActivePython (on Windows XP).

    Working on writing a Windows service in Python. The "Python
    Programming on Win32" book says I should first register the
    pythonserive. This does not seem to work (see error below). However,
    the books SmallestService seems to run anyway.

    Thanks for your help.

    Olaf

    *** Here is the error: ***
    C:\Python23\Lib \site-packages\win32> pythonservice /register
    Registering the Python Service Manager...
    Fatal Python error: PyThreadState_G et: no current thread

    This application has requested the Runtime to terminate it in an
    unusual way.
    Please contact the application's support team for more information.
  • Larry Bates

    #2
    Re: pythonservice -register

    On my machine (Windows XP Pro also ActivePython 2.2)
    I get the following:

    Registering the Python Service Manager ...

    After that everything works as documented.

    -Larry


    "Olaf Meding" <OlafMeding@com puserve.com> wrote in message
    news:9e5ea2c4.0 403030733.1cb50 edc@posting.goo gle.com...[color=blue]
    > What is the pythonservice.e xe for? What does pythonservice.e xe really
    > do?
    >
    > I installed and am using ActivePython (on Windows XP).
    >
    > Working on writing a Windows service in Python. The "Python
    > Programming on Win32" book says I should first register the
    > pythonserive. This does not seem to work (see error below). However,
    > the books SmallestService seems to run anyway.
    >
    > Thanks for your help.
    >
    > Olaf
    >
    > *** Here is the error: ***
    > C:\Python23\Lib \site-packages\win32> pythonservice /register
    > Registering the Python Service Manager...
    > Fatal Python error: PyThreadState_G et: no current thread
    >
    > This application has requested the Runtime to terminate it in an
    > unusual way.
    > Please contact the application's support team for more information.[/color]


    Comment

    Working...