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],