1, yun -y install msgpack-python

2, python modules is not packs and unpacks
>>> import msgpack
>>> dir(msgpack)
['BufferFull', 'ExtType', 'ExtraData', 'OutOfData', 'PackException', 
'PackValueError', 'Packer', 'UnpackException', 'UnpackValueError', 'Unpacker', 
'__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 
'_packer', '_unpacker', '_version', 'dump', 'dumps', 'exceptions', 'load', 
'loads', 'namedtuple', 'os', 'pack', 'packb', 'unpack', 'unpackb', 'version']
>>> 

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')

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1134575

Title:
  CRITICAL nova [-] 'module' object has no attribute 'packs'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ceilometer/+bug/1134575/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to