kongluoxing / celerybeatredis

celery scheduler use redis
57 stars 42 forks source link

dependencies minimum version #12

Closed asmodehn closed 8 years ago

asmodehn commented 8 years ago

I recently had this issue after updating :

  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "celeros/celeros/celerybeatredis/__init__.py", line 3, in <module>
    from .schedulers import PeriodicTask
  File "celeros/celeros/celerybeatredis/schedulers.py", line 12, in <module>
    from redis.exceptions import LockError
ImportError: cannot import name LockError

And it turns out :

Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
>>> redis.__version__
'2.7.2'
>>> 

So I was wondering which redis version is required here... It would be good to specify it in the setup.py.

kongluoxing commented 8 years ago

I have tested it with redis==2.10.3 and celery==3.1.19