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

Compatibility with Django v5.0 #79

Open
ghost opened this issue Jul 23, 2021 · 3 comments
Open

Compatibility with Django v5.0 #79

ghost opened this issue Jul 23, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 23, 2021

Hi,

Has anybody been able to get django-celery-email working with celery 5? I have tried to get it running but get an error and not sure of it should work out of the box or there is some compatibility issue.

Thanks

@palvarez89
Copy link

Is it similar to this one?

root@a1c98feef4ff:/code# python celery-task.py worker
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/click_didyoumean/__init__.py", line 34, in resolve_command
    return super(DYMMixin, self).resolve_command(ctx, args)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1314, in resolve_command
    ctx.fail("No such command '{}'.".format(original_cmd_name))
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 550, in fail
    raise UsageError(message, self)
click.exceptions.UsageError: No such command 'celery-task.py'.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/code/celery-task.py", line 13, in <module>
    app.start()
  File "/usr/local/lib/python3.9/site-packages/celery/app/base.py", line 371, in start
    celery.main(args=argv, standalone_mode=False)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1254, in invoke
    cmd_name, cmd, args = self.resolve_command(ctx, args)
  File "/usr/local/lib/python3.9/site-packages/click_didyoumean/__init__.py", line 42, in resolve_command
    raise click.exceptions.UsageError(error_msg, error.ctx)
click.exceptions.UsageError: No such command 'celery-task.py'.

@DmytroLitvinov
Copy link

Rename the title of issue "Compatibility with Django v5.0" to "Compatibility with celery v5"

@tartieret
Copy link
Contributor

I just tested with Python 3.8 and Celery 5.1.2 and no problem at all
The way to start a celery worker is different in Celery 4 and Celery 5, see docs here:
https://docs.celeryproject.org/en/stable/history/whatsnew-5.0.html#step-1-adjust-your-command-line-invocation

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

Successfully merging a pull request may close this issue.

3 participants