Windows 32 service problem (ImportError)

L

Laszlo Zsolt Nagy

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\Service.py", line 17, in ?
from Processor import *
File "c:\Python\Projects\NamedConnector\Processor.py", line 35, in ?
from mess import MessageSocket
File "T:\Python\Lib\mess\MessageSocket.py", line 31, in ?
import zlib
exceptions.ImportError: dynamic module does not define init function
(initzlib)
-------------

Facts:

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.

Les
 
?

=?ISO-8859-2?Q?=22Martin_v=2E_L=F6wis=22?=

Laszlo said:
exceptions.ImportError: dynamic module does not define init function
(initzlib)

My guess is that you have a zlib.dll somewhere, which gets used before
zlib.pyd.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top