[python-win32] Windows Service: Not Starting at Boot

Mark Hammond skippy.hammond at gmail.com
Wed Apr 10 03:36:59 CEST 2013


Hi again Stan!

On 8/04/2013 11:52 PM, Stan wrote:
> (Also WMI, SQLAlchemy, anyjson, psycopg2, etc)
...
> The service wrapper script is based on the example in
> examples\advanced\service.py, and writes to the eventlog.  During
> testing it appears that simply /importing/ my main class will cause the
> application not to start, while excluding the import (and just sticking
> to the example service.py) allows it to start.  With my include in
> place, no eventlog messages are logged.

So the question is what this import does.  For example, if the import 
attempts to use WMI in any way, the hang could well be waiting for it. 
Peppering the imported code with diagnostics should be able to tell you 
roughly where the delay comes from.

Mark



More information about the python-win32 mailing list