script->service.exe

Tomas Brixi tomas_brixi at yahoo.com
Wed Feb 26 08:39:09 EST 2003


> > I have a question regarding script implementing a windows service
> converted into .exe.
> > When I install the script a using pyservice.exe and log something the
> event viewer displays
> > correctly
> > the messages I want to log. I know module service util is build into
> pyservice.exe
> >
> > But when I convert the script using py2exe I get all logs displayed in
> event viewer like this one:
> > ---------------
> > The description for Event ID ( 4098 ) 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.....
> > ---------------
> > Maybe I have forgot to include something. Can anyone help me?
> >
> 
> It's likely you need to arrange for the win32service.pyd file to be included
> in your distribution, since I believe it's that module that defines the log
> message formats. Note that this is a guess, though.

py2exe correctly includes win32service.py during .exe building the process so this file is not
missing. I only found that servicemanager module which contains functions LogMsg and LogInfoMsg
those I use is a module built into pythonservice.exe. So it maybe a problem of py2exe.

Tom


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/





More information about the Python-list mailing list