Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'BasePipeline' from 'redis.client' (/home/ian/.local/lib/python3.8/site-packages/redis/client.py) #253

Open
iajzenszmi opened this issue Dec 17, 2021 · 1 comment

Comments

@iajzenszmi
Copy link

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

ian@ian-HP-Stream-Laptop-11-y0XX:~/stream-framework/Stream-Framework$ python3
Python 3.8.10 (default, Sep 28 2021, 16:10:42)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from stream_framework.activity import Activity

def create_activity(pin):
... activity = Activity(
... pin.user_id,
... PinVerb,
... pin.id,
... pin.influencer_id,
... time=make_naive(pin.created_at, pytz.utc),
... extra_context=dict(item_id=pin.item_id)
... )
... return activity
...
from stream_framework.feeds.redis import RedisFeed
Traceback (most recent call last):
File "", line 1, in
File "/home/ian/stream-framework/Stream-Framework/stream_framework/feeds/redis.py", line 2, in
from stream_framework.storage.redis.activity_storage import RedisActivityStorage
File "/home/ian/stream-framework/Stream-Framework/stream_framework/storage/redis/activity_storage.py", line 2, in
from stream_framework.storage.redis.structures.hash import ShardedHashCache
File "/home/ian/stream-framework/Stream-Framework/stream_framework/storage/redis/structures/hash.py", line 1, in
from stream_framework.storage.redis.structures.base import RedisCache
File "/home/ian/stream-framework/Stream-Framework/stream_framework/storage/redis/structures/base.py", line 2, in
from redis.client import BasePipeline
ImportError: cannot import name 'BasePipeline' from 'redis.client' (/home/ian/.local/lib/python3.8/site-packages/redis/client.py)

@manoj-nandakumar
Copy link

@iajzenszmi which version of redis package are you using. I guess the 2.10 should do the trick
pip install redis==2.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants