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

浙公网安备 33010602011771号