From 9955eb7c7d9130055474830aa6233536b2b13181 Mon Sep 17 00:00:00 2001 From: uraghura Date: Sat, 2 Oct 2021 10:41:44 -0700 Subject: [PATCH] Fix sonic-cfggen contextlib err (#7996) --- dockers/docker-sonic-mgmt/Dockerfile.j2 | 1 + src/sonic-config-engine/setup.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dockers/docker-sonic-mgmt/Dockerfile.j2 b/dockers/docker-sonic-mgmt/Dockerfile.j2 index b6abdb8d9363..fa965ef67c22 100644 --- a/dockers/docker-sonic-mgmt/Dockerfile.j2 +++ b/dockers/docker-sonic-mgmt/Dockerfile.j2 @@ -35,6 +35,7 @@ RUN apt-get update && apt-get install -y build-essential \ RUN pip install cffi==1.10.0 \ "cryptography>=2.5" \ + contextlib2==0.6.0.post1 \ "future>=0.16.0" \ gitpython \ ipaddr \ diff --git a/src/sonic-config-engine/setup.py b/src/sonic-config-engine/setup.py index d167e0566438..d683c8229314 100644 --- a/src/sonic-config-engine/setup.py +++ b/src/sonic-config-engine/setup.py @@ -31,7 +31,8 @@ 'Jinja2<3.0.0', 'pyangbind==0.6.0', 'zipp==1.2.0', # importlib-resources needs zipp and seems to have a bug where it will try to install too new of a version for Python 2 - 'importlib-resources==3.3.1' # importlib-resources v4.0.0 was released 2020-12-23 and drops support for Python 2 + 'importlib-resources==3.3.1', # importlib-resources v4.0.0 was released 2020-12-23 and drops support for Python 2 + 'contextlib2==0.6.0.post1' ]