Clarification required django celery,celery and djangoceleryemail compatabilty versions to handle asynchronous tasks

330 views
Skip to first unread message

Dilipkumar Noone

unread,
Sep 21, 2019, 1:32:56 PM9/21/19
to Django users
I am new to Django.

I am developing one django application which needs following packages to handle asynchronous tasks in the back ground.

1.djangocelery
2.djangocelery email.

App definitions in My settings.py file:

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'crispy_forms',
'djcelery',
'gspapp',
'djcelery_email',
#'django_celery_results',
]

But when i install these packages in my virtual environment, I encountered with the below errors:

1.I have django-celery - 3.3.1 and celery 4.3.0 initially.
2.when i execute the celery worker command :celery -A gspaat worker --loglevel=info
i got the below error:
==========================================================
ModuleNotFoundError: No module named 'kombu.asynchronous'
==========================================================
As per the message posted in below link,i uninstalled celery version and installed latest celery version 4.3.0 . 
https://stackoverflow.com/questions/50511905/cannot-start-celery-worker-kombu-asynchronous-timer

But unfortunately i am facing with below error.
=====================================================================================================================
ERROR: django-celery 3.3.1 has requirement celery<4.0,>=3.1.15, but you'll have celery 4.3.0 which is incompatible.
Due to above error, i installed celery version :3.1.25 using pip install celery==3.1.25 but i got the below error 

ERROR: django-celery-email 2.0.2 has requirement celery>=4.0, but you'll have celery 3.1.25 which is incompatible.
=====================================================================================================================


So, please share the compatible version of djcelery , celery and djcelery_email.

Regards,
N.Dilip Kumar.

Andréas Kühne

unread,
Sep 21, 2019, 1:58:08 PM9/21/19
to django...@googlegroups.com
Hi,

You don't need to install anything but the celery package. Django celery and other variants are not supported anymore.

So all you need to do is install celery and follow the instructions here:

Best regards,

Andréas


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e148eda2-8e6c-4f7b-bc11-321c987eef34%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages