diff --git a/dockers/docker-platform-monitor/Dockerfile.j2 b/dockers/docker-platform-monitor/Dockerfile.j2 index 64fd6176d87..578b0502b77 100755 --- a/dockers/docker-platform-monitor/Dockerfile.j2 +++ b/dockers/docker-platform-monitor/Dockerfile.j2 @@ -46,7 +46,8 @@ RUN apt-get install -y -t bookworm-backports \ # doesn't ensure all dependencies are installed in the container. So here we # install any dependencies required by the Arista sonic_platform package. # TODO: eliminate the need to install these explicitly. -RUN pip3 install grpcio==1.51.1 \ +RUN pip3 install setuptools \ + pip3 install grpcio==1.51.1 \ grpcio-tools==1.51.1 --no-build-isolation # Barefoot platform vendors' sonic_platform packages import these Python libraries (and netifaces) diff --git a/sonic-slave-bookworm/Dockerfile.j2 b/sonic-slave-bookworm/Dockerfile.j2 index 647e7b4ce0f..3d3b5db2228 100644 --- a/sonic-slave-bookworm/Dockerfile.j2 +++ b/sonic-slave-bookworm/Dockerfile.j2 @@ -566,7 +566,9 @@ RUN pip3 install pyyaml-include # For building sonic_ycabled # Note: Match version in bookworm -RUN pip3 install grpcio==1.51.1 grpcio-tools==1.51.1 --no-build-isolation +RUN pip3 install setuptools \ + pip3 install grpcio==1.51.1 \ + grpcio-tools==1.51.1 --no-build-isolation # For running Python unit tests RUN pip3 install pytest-runner==5.2