Comment 13 for bug 1134575

Revision history for this message
wangqiang.sheng (wangqiangsheng) wrote :

1, yun -y install msgpack-python

2,modif vim /usr/lib/python2.6/site-packages/kombu-1.1.3-py2.6.egg/kombu/serialization.py

278 def register_msgpack():
279 """See http://msgpack.sourceforge.net/"""
280 try:
281 import msgpack
282 #registry.register('msgpack', msgpack.packs, msgpack.unpacks,
283 registry.register('msgpack', msgpack.pack, msgpack.unpack,
284 content_type='application/x-msgpack',
285 content_encoding='binary')
286 except ImportError:
287
288 def not_available(*args, **kwargs):
289 """In case a client receives a msgpack message, but yaml
290 isn't installed."""
291 raise SerializerNotInstalled(
292 "No decoder installed for msgpack. "
293 "Install the msgpack library")
294 registry.register('msgpack', None, not_available,
295 'application/x-msgpack')