From 214178bec752b7d0b41890beafd889ca6494ab0e Mon Sep 17 00:00:00 2001 From: Kai Fricke Date: Fri, 27 May 2022 19:19:04 +0200 Subject: [PATCH] Pin protobuf to < 4 (#25257) Otherwise pip install ray will install latest protobuf which is incompatible Co-authored-by: Yi Cheng <74173148+iycheng@users.noreply.github.com> --- python/requirements.txt | 2 +- python/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/requirements.txt b/python/requirements.txt index 47588c80d..1cc63ef19 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -19,7 +19,7 @@ msgpack >= 1.0.0, < 2.0.0 numpy >= 1.16 opencensus prometheus_client >= 0.7.1, < 0.14.0 -protobuf >= 3.8.0 +protobuf >= 3.8.0, < 4.0.0 py-spy >= 0.2.0 pydantic >= 1.8 pyyaml diff --git a/python/setup.py b/python/setup.py index 1d8c09a62..5a366de3c 100644 --- a/python/setup.py +++ b/python/setup.py @@ -267,7 +267,7 @@ if setup_spec.type == SetupType.RAY: "msgpack >= 1.0.0, < 2.0.0", "numpy >= 1.16; python_version < '3.9'", "numpy >= 1.19.3; python_version >= '3.9'", - "protobuf >= 3.15.3", + "protobuf >= 3.15.3, < 4.0.0", "pyyaml", "redis >= 3.5.0", ]