[Twisted-Python] Having touble with spread.pb un-serializing an object

Benjamin Ash bash at intelerad.com
Wed Sep 23 13:06:04 MDT 2009


Hi,

I am trying to send new style classes that implement __slots__ with spread.pb.
Things seem to go awry when attempting to un-serialize the objects on the
client side.  I am not sure if this is a known issue.  How can I work around
this issue?

Thanks,

-ben

Stack trace:
"""
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python-2.6/lib/python2.6/site-packages/twisted/spread/pb.py", line 514, in expressionReceived
    method(*sexp[1:])
  File "/usr/lib/python-2.6/lib/python2.6/site-packages/twisted/spread/pb.py", line 884, in proto_answer
    d.callback(self.unserialize(netResult))
  File "/usr/lib/python-2.6/lib/python2.6/site-packages/twisted/internet/defer.py", line 243, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python-2.6/lib/python2.6/site-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python-2.6/lib/python2.6/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "./postRelease.in", line 36, in checkMissingRpms
    print obj.name
exceptions.AttributeError: name
"""




Intelerad Medical Systems 
Central Station 
895, de la Gauchetiere W., Suite 400 
Montreal, QC Canada H3B 4G1 
www.intelerad.com   

This email or any attachments may contain confidential or legally privileged information intended for the sole use of the addressees. Any use, redistribution, disclosure, or reproduction of this information, except as intended, is prohibited. If you received this email in error, please notify the sender and remove all copies of the message, including any attachments.   



More information about the Twisted-Python mailing list