You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: