py2exe service doesn't work, can't connect to service controller ?
bkc at Murkworks.com
Sun Aug 24 20:14:18 CEST 2003
"Thomas Heller" <theller at python.net> wrote in message
news:y8xljv9e.fsf at python.net...
> There may still be problems with the event log (the descriptions are not
> found), but otherwise at least the py2exe sample service works
> Well, you can install, start, stop, and remove it ;-)
Unfortunately, I cannot start the service, it always fails.
Here's what I've tried.
1. the latest version of py2exe you just released for 2.3
Build the sample MyService on Windows 2000 SP3
I can install and remove the service ok.
If I run the service, I get the same error previously reported:
The description for Event ID ( 240 ) in Source ( MyService ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. The following
information is part of the event: 1063, The service process could not
connect to the service controller..
Also, if using MyService.exe to start the service, it reports error "997"
while starting the service.
I can, however, use Myservice.exe -debug and that will run the service, it
does put an informational message in the event log on startup and shutdown,
though as you note, it's missing the descriptor for the event message.
2. Same as above, but try it on a different windows 2000 machine. Same
3. Use py2exe version 0.4.1 with Python22
Same problem as reported in 1 and 2 above.
However in all cases, using Python to run MyService works ok.
If you can't recreate this error, then I'll need to figure out how to make a
debug version of the service, and figure out how to debug a service. How do
I do that?
More information about the Python-list