错误类型:AttributeError: async
错误原因:celery版本与kombu版本的不一致
错误类型:kombu.exceptions.VersionMismatch: Redis transport requires redis-py versions 3.2.0 or later. You have 2.10.6
错误原因:kombu版本,需要你的redis==2.10.6版本不低于redis==3.2.0
推荐下载:
celery==4.1.0
kombu==4.1.0
redis==2.10.6
(提示:下载celery库的时候,pip会下载对应的kombu库)
错误类型:consumer: Cannot connect to redis
错误原因:redis-server 没有启动
解决方法:redis-server /etc/redis/redis.conf (你的redis配置文件路径)