Celery + Django – ModuleNotFoundError: 找不到模块'celery.backends.amqp'

huangapple go评论47阅读模式
英文:

Celery + Django - ModuleNotFoundError: No module named 'celery.backends.amqp'

问题

我不知道为什么会出现这个错误。我的requirements.txt文件包括:

amqp==5.1.1
celery==5.2.7

我已经按照标准配置这里的说明进行设置:有什么可能出错的地方吗?

英文:

I have no clue why I am getting this error. My ´requirements.txt´ file includes:

amqp==5.1.1
celery==5.2.7

I have followed the standard configurations here: Any ideas what could be wrong?

答案1

得分: 2

自版本5.0起,Celery核心已删除amqp后端。您可以将其替换为第三方软件包,例如https://pypi.org/project/celery-amqp-backend/,或使用rpc://

原5.0版本似乎存在一个错误:https://github.com/celery/celery/issues/6384

但它已通过https://github.com/celery/celery/pull/7805修复。

不过,我不确定是否已发布到PyPI。

经过进一步的研究,看起来这个修复计划在5.3版本中发布,计划在五月发布:https://github.com/celery/celery/milestone/36

英文:

As of version 5.0, the amqp backend has been removed from Celery core. You can either replace it with a third party package such as https://pypi.org/project/celery-amqp-backend/ or use rpc://.

It looks like there is a bug in the original 5.0 release: https://github.com/celery/celery/issues/6384

But it is fixed with https://github.com/celery/celery/pull/7805

I'm not sure if this has made it to pypi, though.

After some more research, it looks like this fix is slated for 5.3 to be released in May: https://github.com/celery/celery/milestone/36

huangapple
  • 本文由 发表于 2023年4月4日 12:52:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/75925623.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定