APScheduler更新至3.6.0会出现的redis版本错误

更新公告
APScheduler 3.6.0
Adapted RedisJobStore to v3.0 of the redis library
Adapted RethinkDBJobStore to v2.4 of the rethink library
Fixed DeprecationWarnings about collections.abc on Python 3.7 (PR by Roman Levin)

当使用redis < 3.0时,会爆出如下的错误

pkg_resources.VersionConflict: (redis 2.10.6 (/usr/lib/python2.7/site-packages), Requirement.parse('redis>=3.0; extra == "redis"'))

但是,把redis提升到>=3.0后,就会

ImportError: cannot import name b

这个比较好解决,是因为redis和redis-py-cluster不兼容
这个时候问题就来了

目前redis-py-cluster最高版本1.3.6最高只能支持到redis2.10.6!!!

仍然<=3.0

解决方法:
只能把APScheduler的版本降下来

~ pip install APScheduler==3.5.3

按理说Adapted RedisJobStore to v3.0 of the redis library是指可以支持redis3.0以上了,3.0以下也应该支持才对,估计是一个bug
NHMfB(1v8ndn0LqY_!=P_GnjVb!a-EH2

你可能感兴趣的:(APScheduler更新至3.6.0会出现的redis版本错误)