diff --git a/python/requirements.txt b/python/requirements.txt index ca94c8ecce1e..223dd03e62f6 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -23,7 +23,7 @@ protobuf >= 3.8.0 py-spy >= 0.2.0 pydantic >= 1.8 pyyaml -redis >= 3.5.0 +redis >= 3.5.0, < 4.0.0 requests ## setup.py extras diff --git a/python/setup.py b/python/setup.py index b8898005de67..05a15764edf2 100644 --- a/python/setup.py +++ b/python/setup.py @@ -264,7 +264,7 @@ def get_packages(self): "numpy >= 1.19.3; python_version >= '3.9'", "protobuf >= 3.15.3", "pyyaml", - "redis >= 3.5.0", + "redis >= 3.5.0, < 4.0.0", ]