serializers: how to upgrade
"Radim Rehurek" <[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
Hello Irmen,
there have been reports that Pyro stopped working on the gensim mailing
list: https://groups.google.com/forum/#!topic/gensim/eXNEDxyQnwU
I had a look and it seems to be related to the recent changes in
serialization. Downgrading to 4.18 solves the problems.
What is the recommended way to do a backward-compatible upgrade? Following
the documentation, I tried to set PYRO_SERIALIZER=pickle before starting any
pyro4 processes, but that just results in
$ python -m Pyro4.naming -n 0.0.0.0 &
Broadcast server running on 0.0.0.0:9091
$ python -m gensim.models.lsi_worker &
Exception in thread Pyro-Worker-4356928208 :
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python
2.7/threading.py", line 530, in __bootstrap_inner
self.run()
File "/Volumes/work/workspace/vew/gensim/lib/python2.7/site-packages/Pyro
4/tpjobqueue.py", line 62, in run
self.job()
File "/Volumes/work/workspace/vew/gensim/lib/python2.7/site-packages/Pyro
4/socketserver/threadpoolserver.py", line 34, in __call__
self.daemon.handleRequest(self.csock)
File "/Volumes/work/workspace/vew/gensim/lib/python2.7/site-packages/Pyro
4/core.py", line 710, in handleRequest
raise errors.ProtocolError("message used serializer that is not
accepted: %d" % msg.serializer_id)
ProtocolError: message used serializer that is not accepted: 4
Cheers,
Radim
---------- Původní zpráva ----------
Od: Irmen de Jong <[email protected]>
Datum: 26. 8. 2013
Předmět: [Pyro] Pyro 4.22 released!
"-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Pyro 4.22 has just been released!
Get it from Pypi: http://pypi.python.org/pypi/Pyro4/
Or straight from Github: https://github.com/irmen/Pyro4
Documentation: http://pythonhosted.org/Pyro4/index.html
Overview of new stuff in this version:
- support multiple serializers in daemon
- new wire protocol (46), new Pyro4.message module
- you can write pyro: and pyroname: in lowercase in URIs
- many unit tests improvements, mainly for ironpython and jython
The main new feature of this release is the support of different serializers
at the
same time in Pyro daemons. This means you can make a deamon accept more than
just one
specific serializer, it will respond to the client with whatever
serialization format
that client used. You control this with the SERIALIZERS_ACCEPTED config
item, which
defaults to the three 'safe' serializers that Pyro supports.
Note that the wire protocol header has once again been changed in a non-
backwards
compatible way. It had to carry a new control byte to support the multi-
serializer
messaging and I took the liberty to overhaul it some more. The new wire
protocol
version is 46. You will have to upgrade all Pyro installations; older
versions won't
be able to talk to 4.22 and vice versa. I'm sorry about that, but I do think
the new
header format is a big improvement. It is smaller and at the same time is
extensible
to add new stuff to it later. I expect this new header format to be stable
for quite a
long time. For implementation details see the new Pyro4.message module. I
will update
the Pyrolite library to this new protocol version as well.
As usual the complete change log can be found in the documentation.
Have fun!
Irmen de Jong
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSG8o6AAoJEHC9o7RHFlf2ksEH/0tg9BIHk10m9SN3cGNtsvNJ
n0Ml6y67znhB3GgWGDrV537jdo3QiOEs2kHf2VTyXZmRtymTnIIxVwuxTPPv/QNZ
qKpuYGqdFlzjWJ9fdAnhh5DZEt3OaUS7aQYPgg/8roSOnBFTN3ilLBMr6F6oFG7K
PeLF+s2L5YrnVW0rTXfjIrxgBCFTRUtxgpwyjqi810eZS4NqAXurpTiOdXIoFJx3
zOsNMOu0iX98CLLOKBNc+5tsdFi2xUhSBAq2Dm2hrwy+fwzVTjzxLuqhn/Ta9qsM
+1TO6aqhSKPn8k5t7hq8fjYXDg0hyCIflDT7l7ra2VR+gFwETFqtt8FQTSEqxh8=
=WA8V
-----END PGP SIGNATURE-----
----------------------------------------------------------------------------
--
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core"
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core