redis / redis-py

Redis Python client
MIT License
12.65k stars 2.52k forks source link

redis-py issue #2712

Closed yhgon closed 1 year ago

yhgon commented 1 year ago

Version: What redis-py and what redis version is the issue happening on?

redis : 3.5.3 
redisearch : 2.1.1 

redis cli works well and work within python as below :

$ redis-cli PING
PONG

$ python
Python 3.10.10 (main, Mar 21 2023, 18:45:11) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
>>> r = redis.Redis(host='localhost', port=6379, db=0)
>>> r.set('foo', 'bar')
True
>>> r.get('foo')
b'bar'

with configure

REDIS_HOST=192.168.0.30
REDIS_PORT=6379
REDIS_PASSWORD=
WIPE_REDIS_ON_START=True
MEMORY_INDEX=auto-gpt

it have error

Continue (y/n): y
Error: Redis is not installed. Please install redis-py to use Redis as a memory backend.
Using memory of type:  LocalCache
Using Browser:  chrome

Platform: What platform / version? (For example Python 3.5.1 on Windows 7 / Ubuntu 15.10 / Azure)

python 3.10.10
Ubuntu 20.04 on WSL2 
conda : 23.3.1 

Description: Description of your issue, stack traces from errors and code that reproduces the issue

chayim commented 1 year ago

Can you please be more descriptive? What's the issue you're seeing? What Redis are you running?

If you're trying to use redisearch, I highly recommend the redis-stack-server docker. Note - you should be running at least Python 3.7, and redis-py 4.4.

Python 3.5 is no longer supported (by Python.org), nor here.

agronholm commented 1 year ago

Are you seeing some error because you don't have redis-py installed? Why are you reporting that as a bug here?

woutdenolf commented 1 year ago

Seems like the error message comes from auto-gpt? I assume you are trying to use auto-gpt without docker? The docs don't seem to mention how to actually install all dependencies. Try pip install -r requirements.txt.

In any case, this is not a redis-py issue. Use the auto-gpt issue tracker if you have more questions.