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