Pyro: ActiveState (wind32) to Unix

S

Sells, Fred

I'm using ActiveState python on a windows box to talk to ACtive Directory. I'm running a Pyro Server on the same box.

The client is Linux running std Python 2.4.

It works just fine until the server codes calls some win32com.client api; then I get


Traceback (most recent call last):
File "C:\All\projects\AccAdminTools\src\demo002\client\client.py", line 25, in ?
unittest()
File "C:\All\projects\AccAdminTools\src\demo002\client\client.py", line 21, in unittest
properties = ad.getProperties()
File "c:\all\tools\python24\lib\site-packages\Pyro-3.7-py2.4-win32.egg\Pyro\core.py", line 390, in __call__
return self.__send(self.__name, args, kwargs)
File "c:\all\tools\python24\lib\site-packages\Pyro-3.7-py2.4-win32.egg\Pyro\core.py", line 468, in _invokePYRO
return self.adapter.remoteInvocation(name, constants.RIF_VarargsAndKeywords, vargs, kargs)
File "c:\all\tools\python24\lib\site-packages\Pyro-3.7-py2.4-win32.egg\Pyro\protocol.py", line 416, in remoteInvocation
answer = pickle.loads(answer)
ImportError: No module named pywintypes

____________________the offending code is ________________________________________ def getProperties(self):
def getProperties(self):
attr_dict={}
adobj=win32com.client.GetObject(self.LdapPath) #<<<<this line causes the error
return {'aaa':'bbb'}
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,084
Latest member
HansGeorgi

Latest Threads

Top