Problems with py2exe and Windows NT service (in Python)
Arnold Weis
aweis at gmx.de
Fri May 4 09:47:06 EDT 2001
Hi all,
I have problems using py2exe for a Windows NT service written in Python.
The program runs fine if installed manually, but the version built with py2exe
does not run at all.
Here' what's happening:
I run py2exe with this command:
python setup.py py2exe -i "site,traceback"
I get the following warning:
warning: py2exe:
***************************************************************
**********
warning: py2exe: * The following modules were not found:
warning: py2exe: * ce
warning: py2exe: * servicemanager
warning: py2exe: * sitecustomize
warning: py2exe:
***************************************************************
**********
According to "Python Programming on Win32", the servicemanager is only
available when code is running under the Service Control Manager.. :-(
Error-message when trying to install the Python-Service-Manager:
Registering the Python Service Manager...
'import site' failed; use -v for traceback
Error message in Event-Log:
Python could not import the service's module
<Error getting traceback - cant import traceback
exceptions.ImportError: No module named POPserve
BTW, POPserve is the name of the application.
Does anyone have an idea how this can be fixed? Or is it generally impossible
to convert a Python NT-service to a standalone Windows program?
Will McMillans installer be able to do that?
Thanx for your help
Arnold
More information about the Python-list
mailing list