From 237a6eafca4ca049e9d4976434f9bc48aafd58a6 Mon Sep 17 00:00:00 2001 From: Jiajun Yao Date: Sat, 15 Jul 2023 17:08:55 -0700 Subject: [PATCH] [Core] Unpin grpcio for Ray client (#37449) Redo #37368 and #37398 while avoiding grpc/grpc#33714 Closes #37432 --------- Signed-off-by: Jiajun Yao --- python/requirements.txt | 5 ++--- python/setup.py | 6 ++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/python/requirements.txt b/python/requirements.txt index e78259a5028c..6ba7e9c08505 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -20,8 +20,8 @@ requests # Python version-specific requirements dataclasses; python_version < '3.7' -grpcio >= 1.32.0; python_version < '3.10' -grpcio >= 1.42.0; python_version >= '3.10' +grpcio == 1.54.2; sys_platform == "darwin" +grpcio >= 1.54.2; sys_platform != "darwin" numpy>=1.16; python_version < '3.9' numpy>=1.19.3; python_version >= '3.9' typing_extensions; python_version < '3.8' @@ -54,7 +54,6 @@ requests pandas tensorboardX<=2.6.0,>=1.9 # >=2.6.1 uses protobuf>=4, and conflicts with other packages. gymnasium==0.26.3 -grpcio<=1.50.0,>=1.42.0 # ray client aiohttp>=3.7 starlette typer diff --git a/python/setup.py b/python/setup.py index 91de82026927..a7f240d8f3e3 100644 --- a/python/setup.py +++ b/python/setup.py @@ -265,8 +265,10 @@ def get_packages(self): ], "client": [ # The Ray client needs a specific range of gRPC to work: - # Tracking issue: https://github.com/grpc/grpc/issues/31885 - "grpcio >= 1.42.0, <= 1.50.0", + # Tracking issues: https://github.com/grpc/grpc/issues/33714 + "grpcio != 1.56.0" + if sys.platform == "darwin" + else "grpcio", ], "serve": ["uvicorn", "requests", "starlette", "fastapi", "aiorwlock"], "tune": ["pandas", "tensorboardX>=1.9", "requests", pyarrow_dep],