From dbbb3b0855d43006b4bbd53a60b6ffe550070bb6 Mon Sep 17 00:00:00 2001 From: Stephen Sun <5379172+stephenxs@users.noreply.github.com> Date: Mon, 13 Sep 2021 13:33:10 +0800 Subject: [PATCH] Fix error during building docker-sonic-mgmt-framework on 201911 (#8726) Why I did it Fix error during building docker-sonic-mgmt-framework on 201911 Signed-off-by: Stephen Sun stephens@nvidia.com How I did it Cause: While building sonic-mgmt-framework docker, it needs to install grpcio-tools version 1.20.0 which has a dependency on grpcio version >=1.20.0. As >=1.20.0 is specified, it will install the latest version of grpcio. It had worked well until the grpcio package version 1.40.0 was released 3 days ago. Looks like some new dependencies are introduced by the latest version. Fix: Designate grpcio version 1.39.0 explicitly, which is the latest version of grpcio that worked well. --- dockers/docker-sonic-mgmt-framework/Dockerfile.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 b/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 index 2ee945c491a0..e750f1fd992c 100644 --- a/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 +++ b/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 @@ -9,6 +9,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update RUN pip install connexion==1.1.15 \ setuptools==21.0.0 \ + grpcio==1.39.0 \ grpcio-tools==1.20.0 \ pyangbind==0.6.0 \ certifi==2017.4.17 \