franck34 bqomrvliagmailcom hi list im problem since 2 days dont know continu investigate notice ive started python 2 month ago honestly dont know problem pywin32 py2exe pyinstaller behavior simply code problem dont luck make simple windows service python script compiled full standalone executable ive tried different version python 244 251 252 latests version theses packages python 252 py2exe066win32py25exe pywin32210win32py25exe python 244 py2exe066win32py24exe pywin32210win32py24exe im basic windows xp sp2 completely uptodate code sample notice sample provided py2exe samplesadvancedmyservicepy sample provided pywin32 win32demosservicepipetestservicepy got behavior import win32service import win32serviceutil import win32traceutil import time import sys point ready go put simply python windows service inherits win32serviceutilsserviceframework simply extending class sets ever need class aservicewin32serviceutilserviceframework _svc_name_ aservice _svc_display_name_ aservice nothing def __init__selfargs win32serviceutilserviceframework__init__selfargs selfisalive true def svcdorunself import servicemanager selfisalive servicemanagerloginfomsgaservice alive well timesleep10 perhaps must use win32sleep10 servicemanagerloginfomsgaservice stopped def svcstopself import servicemanager servicemanagerloginfomsgaservice recieved stop signal selfreportservicestatuswin32serviceservice_stop_pending selfisalive false make svcdorun break loop next iteration __name__ __main__ print letss start args print sysargv win32serviceutilhandlecommandlineaservice line sets run properly notice enable win32traceutil see stdout case open another dos console execute python cpython2xlibsitepackageswin32libwin32traceutilpy using python python myservicepy install install service expected python myservicepy start start service expected python myservicepy remove remove service expected using pyinstaller compiled version myserviceexe install install service expected myserviceexe start dont work myserviceexe remove remove service expected pyinstaller 13 python 24 python win32traceutil window see start service using myserviceexe start myserviceexe launched twice behavior using pyinstaller trunk checkout python 252 error service respond start control request timely fashion replacing myserviceexe start sc start aservice output thing using py2exe compiled version every time ive got connecting service control manager traceback recent call last file boot_servicepy line 173 pywintypeserror 1063 startservicectrldispatcher le processus de service na pas pu se connecter au contrxf4leur de service windows xp sp2 latest updates didnt try another box got one ive tried lots different service code install remove always work start never saw sysfrozen pywin32 know code little bit different program executable launched using python command line perhaps way find problem pywin32 problem great somebody help thanks advance regards franck _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 144617 0200 pythonwin32 win32service problems