Python3.5以上Celery4.2.1启动报错:ImportError: cannot import name 'LRUCache' from 'kombu.utils.functional'


服务器:Centos7
Python版本:Python 3.7.0
Celery版本:4.2.1

Python3.5以上,OrderDict不允许在迭代过程中进行修改,导致LRUCache.update失败,可能引起的此问题。

解决方法,安装dev版的celery

python3 -m pip install -e git+https://github.com/celery/kombu.git#egg=kombu

参考链接:
https://github.com/celery/celery/issues/3200
https://github.com/celery/celery/issues/2897


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM