英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论