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')
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(): msgpack. sourceforge. net/""" register( 'msgpack' , msgpack.packs, msgpack.unpacks, register( 'msgpack' , msgpack.pack, msgpack.unpack, type='applicati on/x-msgpack' , encoding= 'binary' ) *args, **kwargs): stalled( register( 'msgpack' , None, not_available, x-msgpack' )
279 """See http://
280 try:
281 import msgpack
282 #registry.
283 registry.
284 content_
285 content_
286 except ImportError:
287
288 def not_available(
289 """In case a client receives a msgpack message, but yaml
290 isn't installed."""
291 raise SerializerNotIn
292 "No decoder installed for msgpack. "
293 "Install the msgpack library")
294 registry.
295 'application/