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

Missing anyjson dependency? #1345

Closed
jorvis opened this issue May 3, 2013 · 4 comments
Closed

Missing anyjson dependency? #1345

jorvis opened this issue May 3, 2013 · 4 comments

Comments

@jorvis
Copy link

jorvis commented May 3, 2013

I'm new to Celery, so please feel free to point out if this is my mistake. I just grabbed the tarball for django-celery-3.0.17 and upon installing I see that it grabbed other required modules as well (celery, python-dateutil, billiard, six, etc.) and then installation completed successfully (using Python 3.3).

Next I added djcelery to my Django project's INSTALLED_APPS as well as the suggested lines to settings.py. When I ran syncdb I got this:

$ python3.3 manage.py syncdb
Traceback (most recent call last):
File "/opt/python-3.3.1/lib/python3.3/site-packages/django/core/management/base.py", line 240, in run_from_argv
self.execute(_args, *_options.dict)
File "/opt/python-3.3.1/lib/python3.3/site-packages/django/core/management/base.py", line 282, in execute
self.validate()
File "/opt/python-3.3.1/lib/python3.3/site-packages/django/core/management/base.py", line 308, in validate
num_errors = get_validation_errors(s, app)
File "/opt/python-3.3.1/lib/python3.3/site-packages/django/core/management/validation.py", line 34, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/opt/python-3.3.1/lib/python3.3/site-packages/django/db/models/loading.py", line 166, in get_app_errors
self._populate()
File "/opt/python-3.3.1/lib/python3.3/site-packages/django/db/models/loading.py", line 75, in _populate
self.load_app(app_name)
File "/opt/python-3.3.1/lib/python3.3/site-packages/django/db/models/loading.py", line 96, in load_app
models = import_module('.models', app_name)
File "/opt/python-3.3.1/lib/python3.3/site-packages/django/utils/importlib.py", line 35, in import_module
import(name)
File "/opt/python-3.3.1/lib/python3.3/site-packages/django_celery-3.0.17-py3.3.egg/djcelery/models.py", line 13, in
from celery.events.state import heartbeat_expires
File "/opt/python-3.3.1/lib/python3.3/site-packages/celery-3.0.19-py3.3.egg/celery/events/init.py", line 22, in
from kombu import eventloop, Exchange, Queue, Consumer, Producer
File "/opt/python-3.3.1/lib/python3.3/site-packages/kombu-2.5.10-py3.3.egg/kombu/init.py", line 66, in getattr
module = import(object_origins[name], None, None, [name])
File "/opt/python-3.3.1/lib/python3.3/site-packages/kombu-2.5.10-py3.3.egg/kombu/common.py", line 21, in
from . import serialization
File "/opt/python-3.3.1/lib/python3.3/site-packages/kombu-2.5.10-py3.3.egg/kombu/serialization.py", line 388, in
register_json()
File "/opt/python-3.3.1/lib/python3.3/site-packages/kombu-2.5.10-py3.3.egg/kombu/serialization.py", line 310, in register_json
from anyjson import loads, dumps
ImportError: No module named 'anyjson'

Is 'anyjson' a missed dependency definition?

@ask
Copy link
Contributor

ask commented May 14, 2013

anyjson is a dependency of kombu, not celery. So probably you didn't install kombu properly?

@toxinu
Copy link

toxinu commented Jun 13, 2013

Same for me. I install celery which install kombu successfully. Python 3.3.1.
Tell me if you want more information.

@marcwebbie
Copy link

Same for me, Installed via 'pip install django-celery'. Python 3.3.2.

@ask
Copy link
Contributor

ask commented Oct 23, 2013

Fixed in kombu 2.5.16

@ask ask closed this as completed Oct 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants