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

redisvl.exceptions.RedisModuleVersionError: Required Redis db module search >= 20600 OR searchlight >= 20600 not installed. See Redis Stack docs at https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/. #1301

Closed
EvgeniyWis opened this issue Mar 20, 2025 · 2 comments
Labels
question Further information is requested

Comments

@EvgeniyWis
Copy link

EvgeniyWis commented Mar 20, 2025

I am using Redis connection for mem0 for my Telegram bot:

from config import redis_url

redis_url = f"redis://default:{settings.REDIS_PASSWORD}@{settings.REDIS_HOST}:{settings.REDIS_PORT}/0"

memoryConfig = {
    "vector_store": {
        "provider": "redis",
        "config": {
            "collection_name": "mem0",
            "embedding_model_dims": 1536,
            "redis_url": redis_url
        }
    },
    "version": "v1.1"
}

memory = Memory.from_config(memoryConfig)

And get this error:

is deprecated and will be removed in the next major release. Pass connection parameters in __init__.
  return vector_store_instance(**config)
Traceback (most recent call last):
  File "d:\Telegram_bots\MetaforaNewBot\bot\main.py", line 10, in <module>
    from users.routers.router import user_router
  File "d:\Telegram_bots\MetaforaNewBot\bot\users\routers\router.py", line 12, in <module>
    from users.helpers.send_menuMessage import send_menu_message
  File "d:\Telegram_bots\MetaforaNewBot\bot\users\helpers\send_menuMessage.py", line 2, in <module>
    from users.utils import get_user_stat
  File "d:\Telegram_bots\MetaforaNewBot\bot\users\utils.py", line 33, in <module>
    memory = Memory.from_config(memoryConfig)
  File "C:\Users\1\AppData\Local\Programs\Python\Python313\Lib\site-packages\mem0\memory\main.py", line 64, in from_config
    return cls(config)
  File "C:\Users\1\AppData\Local\Programs\Python\Python313\Lib\site-packages\mem0\memory\main.py", line 39, in __init__
    self.vector_store = VectorStoreFactory.create(
                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
        self.config.vector_store.provider, self.config.vector_store.config
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\1\AppData\Local\Programs\Python\Python313\Lib\site-packages\mem0\utils\factory.py", line 84, in create
    return vector_store_instance(**config)
  File "C:\Users\1\AppData\Local\Programs\Python\Python313\Lib\site-packages\mem0\vector_stores\redis.py", line 74, in __init__        
    self.index.set_client(self.client)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "C:\Users\1\AppData\Local\Programs\Python\Python313\Lib\site-packages\redisvl\utils\utils.py", line 159, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\1\AppData\Local\Programs\Python\Python313\Lib\site-packages\redisvl\index\index.py", line 419, in set_client
    RedisConnectionFactory.validate_sync_redis(redis_client)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "C:\Users\1\AppData\Local\Programs\Python\Python313\Lib\site-packages\redisvl\redis\connection.py", line 366, in validate_sync_redis
    validate_modules(installed_modules, required_modules)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\1\AppData\Local\Programs\Python\Python313\Lib\site-packages\redisvl\redis\connection.py", line 181, in validate_modules
    raise RedisModuleVersionError(error_message)
redisvl.exceptions.RedisModuleVersionError: Required Redis db module search >= 20600 OR searchlight >= 20600 not installed. See Redis Stack docs at https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/.

Does anyone have any idea how this can be solved?

@dwdougherty
Copy link
Collaborator

dwdougherty commented Mar 20, 2025

I'm not 100% sure about this, but it seems it's complaining that your Redis instance doesn't include the correct version of the Redis search module (2.6.0+) or any search module at all. I looked at the Mem0 site briefly, and one of the examples I saw there show Redis Stack as a prerequisite, installed using Docker.

You can check if your instance of Redis Stack includes the search module by running the INFO command using the Redis CLI (redis-cli). You should see something like the following in the output.

# Modules
module:name=bf,ver=20805,api=1,filters=0,usedby=[],using=[],options=[]
module:name=timeseries,ver=11205,api=1,filters=0,usedby=[],using=[],options=[]
module:name=ReJSON,ver=20808,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]
module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
module:name=search,ver=21012,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors] <-- search info
module:name=redisgears_2,ver=20020,api=1,filters=0,usedby=[],using=[],options=[]

You might also try asking your question in our Discord channel. There are lots of helpful folks there who can help.

@dwdougherty dwdougherty added the question Further information is requested label Mar 21, 2025
@EvgeniyWis
Copy link
Author

In the end, I decided to use supabase for this task. After asking the people at Discord, they told me that I was having problems installing redis, which is most likely the case, so I think the problem can be considered closed.

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

No branches or pull requests

2 participants