1.AttributeError: 'NoneType' object has no attribute 'Redis'

1.AttributeError: 'NoneType' object has no attribute 'Redis'

(Celery) E:\StudyClass\Python_Frame\Celerypro>celery -A celery_task worker -l info
Traceback (most recent call last):
	......
  File "D:\Python\Celery\lib\site-packages\kombu\transport\redis.py", line 262, in <module>
    class PrefixedStrictRedis(GlobalKeyPrefixMixin, redis.Redis):
AttributeError: 'NoneType' object has no attribute 'Redis'

连接不上redis的原因是,本地没有与redis对接的模块接口。

解决办法:安装redis模块

pip install redis
posted @ 2022-09-15 15:49  Redskaber  阅读(2288)  评论(0)    收藏  举报