Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kombu==2.1.3 calls non-existing msgpack method #8

Open
florianm opened this issue Nov 25, 2014 · 0 comments
Open

Kombu==2.1.3 calls non-existing msgpack method #8

florianm opened this issue Nov 25, 2014 · 0 comments

Comments

@florianm
Copy link

Source install of ckan 2.3a, ckanext-spatial, ckanext-archiver and ckanext-qa on Ubuntu 14.04 here.

I just noticed (and posted to ckan-dev) that the kombu version (2.1.3 as per plugin requirements) tries to import msgpack (which is no requirement of the involved packages and therefore needs to be installed manually) and throws an Internal Server Error after creating a resource, when ckanext-qa sends a job to celeryd using a kombu-serialised msgpack message (if I understood that correctly).

A hackaround was to pip install u-msgpack-python into ckan's virtualenv, and to change line 314 of the installed kombu.serializer at /var/lib/ckan/default/lib/python2.7/site-packages/kombu/serialization.py
from registry.register('msgpack', msgpack.packs, msgpack.unpacks, to registry.register('msgpack', msgpack.packb, msgpack.unpackb, and restart the web server.

Using the latest celery (presumably pulling in a more recent kombu) in requirements.txt wrecked other things but might be the way to a more permanent fix.
No pull request submitted as the problem isn't with ckanext-archiver code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant