unable to register PythonService.exe

Thomas Heller theller at python.net
Fri Jan 9 13:37:09 CET 2004


prof_888 at hotmail.com (ChrisD) writes:

> I'm running Python 2.3.3 with Win32 extensions win32all-163.  I'm
> working through Chapter 18 of Mark Hammond's excellent "Python
> Programming on Win32".  On page 350 the simple NT service example
> requires that the PythonService.exe program be registered.  However,
> when I attempt it I get this error:
>
> ---------------------------------
> C:\Python23\Lib\site-packages\win32>PythonService /register
> Registering the Python Service Manager...
> Fatal Python error: PyThreadState_Get: no current thread
>
> abnormal program termination
> ---------------------------------
>
> Any thoughts on how I can fix this problem?

Looks like a bug to me, it behaves the same for me.

OTOH, it seems that it's not required to do this registration since the
sample PythonTestService.py works fine for me.

Thomas



More information about the Python-list mailing list