py2exe failed for running compiled service

Peter Teniz peter.teniz at inverisa.net
Wed Feb 11 12:26:45 EST 2004


hi, i'm trying to generate a service for win XP / win 2k with
python2.3.3 + win32all-163 + py2exe0.5.0
(also tried with pywin32-200.win32-py2.3)

running the console-script "FBxmlserv.py" with python-interpreter and as
EXE-prog goes well.
running the service-module "FBservice.py" with python-interpreter also
works fine
but after comiling with py2exe (with no warnings or errors!)  i get on
every host the same error message
when trying to execute the FBservice.exe

 > FBservice.exe
Connecting to the Service Control Manager
Traceback (most recent call last):
    File "boot_service.py" line 158, in ?
pywintypes.error: (1063, 'StartServiceCtrlDispatcher', 'Der
Dienstprozess konnte keine Verbindung zum Dienstcontroller herstellen.')

has anyone an idee, what to do?

thanks



my "setup.py" script:

>from distutils.core import setup
>import py2exe
>import sys
>
>if len(sys.argv) < 2:
>    sys.argv.append ( "py2exe" )
>    sys.argv.append ( "--verbose" )
>    sys.argv.append ( "--packages" )
>    sys.argv.append ( "encodings" )
>    #sys.argv.append ( "-q" )           # be quiet
>
>class Target:
>    def __init__ (self, **kw):
>        self.__dict__.update ( kw )
>
>        # for versioninfo resources
>        self.version      = "0.9.0"
>
>FBserver  = Target (
>        description       = "firebird backend server",
>        script            = "FBxmlserv.py",
>    )
>
>FBservice = Target (
>        description       = "firebird windows nt service",
>        modules           = ["FBservice"],
>    )
>
>excludes = [ "pywin.debugger.dbgcon", "pywin.dialogs",
"pywin.dialogs.list" ]
>
>setup (
>    options   = { "py2exe" : {
>                        "compressed" : 1,
>                        "optimize"   : 2,
>                        "excludes"   : excludes
>                    }
>                },
>                zipfile = "lib/shared.zip",
>                service = [FBservice],
>                console = [FBserver],
>    )







More information about the Python-list mailing list