Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Windows 32 service problem (ImportError)

Reply
Thread Tools

Windows 32 service problem (ImportError)

 
 
Laszlo Zsolt Nagy
Guest
Posts: n/a
 
      08-15-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\Service.py" , line 17, in ?
from Processor import *
File "c:\Python\Projects\NamedConnector\Processor.p y", 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

 
Reply With Quote
 
 
 
 
=?ISO-8859-2?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      08-15-2005
Laszlo Zsolt Nagy wrote:
> exceptions.ImportError: dynamic module does not define init function
> (initzlib)
> -------------
>
> Where is the problem? Please help.


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

Regards,
Martin
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax calls web service in wcf(windows service) Billy Zhang ASP .Net 7 07-31-2008 07:37 AM
How to control Windows Service through Web Service prowyh ASP .Net 0 11-16-2007 04:05 AM
Indexing services under Windows XP SP2 - Can I disable MS Indexing Service to hasten Google's OR does Google Desktop uses this MS Indexing Service? ricardodefaria Computer Support 6 08-05-2007 04:14 AM
Exposing Unmanaged C++ Windows Service code as a ASP.NET service. =?Utf-8?B?c2h5YW0=?= ASP .Net 2 05-22-2006 01:47 AM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57