467,915 Members | 1,142 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

Pyro: ActiveState (wind32) to Unix

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'}
Oct 11 '07 #1
  • viewed: 797
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by hyperbob | last post: by
1 post views Thread by Graham | last post: by
reply views Thread by adam | last post: by
38 posts views Thread by writeson | last post: by
2 posts views Thread by jamitwidme | last post: by
reply views Thread by Irmen de Jong | last post: by
reply views Thread by Chuckk Hubbard | last post: by
reply views Thread by Chuckk Hubbard | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.