nrk / redis-lua

A Lua client library for the redis key value storage system.
MIT License
733 stars 239 forks source link

ImportError: BasePipeline with redis-3.2.1 #65

Open benjaminweb opened 5 years ago

benjaminweb commented 5 years ago

With redis-3.2.1 (python library) I get the following error:

/usr/local/lib/python3.7/site-packages/redis_lua/script.py in <module>
     17 from functools import partial
     18 from redis.client import Script as RedisScript
---> 19 from redis.client import BasePipeline
     20
     21 from .exceptions import error_handler

ImportError: cannot import name 'BasePipeline' from 'redis.client' (/usr/local/lib/python3.7/site-packages/redis/client.py)

With redis-2.10.6 not.

benjaminweb commented 5 years ago

Can we borrow from https://github.com/RedisJSON/rejson-py/commit/c47a6342e2ff9ee05da73408205ec967ac2dc452 ?