Does this error alos occur if you put the import statement into the
global section of the module?
--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP
Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de
Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de
runSrv most probably is run in a separate thread (or such). So this may
be a threading issue.
> Once the error begins to occur, I can't get rid of it; even if I
> remove the service, reboot, and reinstall the
Even if importing logging globally?
Do repeat myself: this may be a threading issue in SrvDoRun.
BTW: Your code differs from the recipes I've found:
http://code.activestate.com/recipes/576451-how-to-create-a-windows-service-in-python/
http://timgolden.me.uk/python/win32_how_do_i/track-session-events.html