Re: autoproxy example only works with pickle

Matt Nelson <[email protected]>
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
---- Pyro mailing list <[email protected]> wrote:
>
> On 25-6-2013 17:50, Matt Nelson wrote:
> > The autoproxy example does not work out of the box. The server runs, but 
the 
> > client throws a traceback:
> [...]
> 
> Thanks for reporting. I confess that I haven't touched the examples that 
come with Pyro
> when adding the new serializers feature. It may very well be that other 
examples don't
> work anymore with the new default serpent serializer.
> 
> I'll revisit them and see what can be done about that.
> 
> But remember, all other serializers are inherently less powerful than 
pickle is, so
> perhaps some examples simply require pickle as serializer. I think I'll 
fix those by
> overriding the config item.
> 

I did a little more testing, and now I'm confused about the relationship 
between serializing and proxying.

If I try the autoproxy example autoproxy turned off, I get the same error as 
when autoproxy is turned on: "Pyro4.errors.ProtocolError: unsupported 
serialized class: Thingy".

However, if I modify the server to return a URI instead of an instance, and 
modify the client to create a proxy using the URI, then the example runs.

So I can't return an instance, with or without autoproxy, because of a 
serialization problem. But I can return a URI and have the client create a 
proxy for an instance of the same class, which succeeds. Does manual 
proxying use some mechanism other than serialization?

 - Matt

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.