Re: message used serializer that is not accepted: 4
Richard van Bemmelen <[email protected]> Sat, 1 Feb 2014 17:02:50 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CAMEWXj1YBSzEY_kyELgm64M93vNWW1yuPuh24SETFtddb+0ekg@mail.gmail.com> |
Hello Irmen,
It comes when I try to send a class from my client to a server (all running
locally now):
The output from the server is:
Object <__main__.csoundServer instance at 0x103e986c8>:
uri = PYRO:obj_16dcb9d52bf7406a81becb3954bd11a1-wgdsaCLVfRM@public.gmane.org:56711
name = example.cserv
Pyro daemon running.
Exception in thread Pyro-Worker-4355059472 :
Traceback (most recent call last):
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py",
line 552, in __bootstrap_inner
self.run()
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/tpjobqueue.py",
line 62, in run
self.job()
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/socketserver/threadpoolserver.py",
line 34, in __call__
self.daemon.handleRequest(self.csock)
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/core.py",
line 712, in handleRequest
objId, method, vargs, kwargs = serializer.deserializeCall(msg.data,
compressed=msg.flags & Pyro4.message.FLAGS_COMPRESSED)
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/util.py",
line 167, in deserializeCall
return self.loadsCall(data)
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/util.py",
line 399, in loadsCall
vargs = self.recreate_classes(vargs)
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/util.py",
line 312, in recreate_classes
return tuple(self.recreate_classes(x) for x in literal)
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/util.py",
line 312, in <genexpr>
return tuple(self.recreate_classes(x) for x in literal)
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/util.py",
line 315, in recreate_classes
return self.dict_to_class(literal)
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/util.py",
line 294, in dict_to_class
raise Pyro4.errors.ProtocolError("unsupported serialized class:
"+classname)
ProtocolError: unsupported serialized class: instr0
And the output from the client:
Traceback (most recent call last):
File "/Users/richard/Desktop/MyPython/CsClientNS.py", line 66, in <module>
cs.add(i0)
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/core.py",
line 160, in __call__
return self.__send(self.__name, args, kwargs)
File
"/Library/Python/2.7/site-packages/Pyro4-4.22-py2.7.egg/Pyro4/core.py",
line 318, in _pyroInvoke
raise data
Pyro4.errors.ProtocolError: unsupported serialized class: instr0
Richard
2014-02-01 Irmen de Jong <[email protected]>:
> On 1-2-2014 9:35, Richard van Bemmelen wrote:
> > Hello,
> >
> > I would like to use pickle as serializer, because I have to serialize
> classes.
> > I've enabled pickle in the client and the server using the suggestions
> on this forum,
> > but still get this error message.
> >
> > Pyro4.configuration shows:
> > SERIALIZER = pickle
> > SERIALIZERS_ACCEPTED = set(['json', 'pickle', 'marshal', 'serpent'])
> >
> > What could be wrong here?
> >
>
> You'll need to provide us with more info to be able to answer that
> question.
> What is "this error message"? What piece of code causes it? Is it coming
> from your
> client code of your server code, or perhaps even from Pyro's name server?
>
> Obviously it occurs in a different part of your system than what is using
> the above
> settings, because they are fine.
>
>
> Irmen
>
>
>
> ------------------------------------------------------------------------------
> WatchGuard Dimension instantly turns raw network data into actionable
> security intelligence. It gives you real-time visual feedback on key
> security issues and trends. Skip the complicated setup - simply import
> a virtual appliance and go from zero to informed in seconds.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
> _______________________________________________
> Pyro-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyro-core
>
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core