Windows 32 service problem (ImportError)

Laszlo Zsolt Nagy gandalf at
Mon Aug 15 14:39:41 CEST 2005

  Hi All!

I have a running service (a small web server) implemented in python, 
running as a win32 service. I wrote another program that is very similar 
to the web server but I cannot start the service. From the event log, I 
can read this traceback:

Python could not import the service's module
  File "T:\Python\Projects\NamedConnector\", line 17, in ?
    from Processor import *
  File "c:\Python\Projects\NamedConnector\", line 35, in ?
    from mess import MessageSocket
  File "T:\Python\Lib\mess\", line 31, in ?
    import zlib
exceptions.ImportError: dynamic module does not define init function 


1. I'm using the same module (MessageSocket) for my web server
2. The web server runs fine as a service

Where is the problem? Please help.


More information about the Python-list mailing list