Cannot return object copies (autoproxy off)

Plamen Dimitrov <[email protected]> Sat, 14 Jun 2014 21:57:56 +0300
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
Hi Irmen,

First off let me say how amazing your Pyro4 is! Achieving such little 
modification of the existing code makes it possible to distribute many 
complex cases, the documentation is great and really informative, and 
the functionality is of course over the top of my expectations. Now 
about the problem I encountered which might be pretty straightforward 
but at least it didn't seem so from the documentation:

I followed the most basic example to register an object and according to 
the documentation if I turn off the autoproxy option (of course it would 
be better on, but I cannot modify the original code I am trying to 
distribute over the network), I should receive a copy of the remotely 
constructed object. However, all I get is

ProtocolError: unsupported serialized class: ...

which is not really true because I have already remotely accessed 
different instances of the same class (!). In a more illustrative example:

I want to share an instance of Dog where remotely calling its method 
bark(), I get back an instance of Sound. I have registered the Dog 
instance and when I call bark(), I get the above error. In a different 
case I have remotely called a method of Sound and had no troubles 
serializing the Sound instance and accessing it remotely. Do you have 
any ideas what am I doing wrong? In the case of AUTOPROXY=True I would 
expect the remotely generated Sound instance and without it I was hoping 
for at least a copy. However, I got the above error (I get the same 
error on far simpler classes with no methods at all like Exception 
subclasses).

Thank you and I can provide any additional information if needed,
Plamen Dimitrov

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems

_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core
smime.p7s (application/pkcs7-signature, 3.9 KB) - not displayed