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

Error loading Celery application with Django module #625

Open
CurtMRosenbladWheeler opened this issue Jun 30, 2023 · 0 comments
Open

Error loading Celery application with Django module #625

CurtMRosenbladWheeler opened this issue Jun 30, 2023 · 0 comments

Comments

@CurtMRosenbladWheeler
Copy link

Description:

When running the celery command with the -A or --app option, an error occurs while trying to load the specified module config.celery_app. The error message indicates that the module django.utils.itercompat is not found. This issue arises because django.utils.itercompat is no longer supported in Django 4.2.

Steps to Reproduce:

Install Celery and Django 4.2.
Run the command celery -A config.celery_app worker --loglevel=info.
Expected Behavior:
The specified module config.celery_app should be successfully loaded as the Celery application.

Actual Behavior:

The following error occurs:

Error: Invalid value for '-A' / '--app': 
Unable to load celery application.
While trying to load the module config.celery_app the following error occurred:
Traceback (most recent call last):
  ...
ModuleNotFoundError: No module named 'django.utils.itercompat'

Additional Information:

The issue occurs when trying to load the module config.celery_app.
The error suggests that the module django.utils.itercompat is not found.
This error is encountered because django.utils.itercompat is no longer supported in Django 4.2.

Possible Solution:

To resolve this issue, Celery needs to be updated to support Django 4.2. It may involve making changes to the Celery codebase to replace usages of django.utils.itercompat with alternative compatible methods or modules.

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