From 8ce4b40e6d4fe9cf10e6c74d6469b38483620781 Mon Sep 17 00:00:00 2001 From: ganglyu Date: Fri, 20 Dec 2024 11:37:06 +0800 Subject: [PATCH] Install python3 requirement for gnmi_cli_py --- dockers/docker-ptf/Dockerfile.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dockers/docker-ptf/Dockerfile.j2 b/dockers/docker-ptf/Dockerfile.j2 index 8dbc1a2ce89e..268532a3a7be 100644 --- a/dockers/docker-ptf/Dockerfile.j2 +++ b/dockers/docker-ptf/Dockerfile.j2 @@ -263,7 +263,9 @@ RUN git clone https://github.com/lguohan/gnxi.git \ && git checkout 3adf8b9 \ && cd gnmi_cli_py \ {% if PTF_ENV_PY_VER == "mixed" %} - && pip install -r requirements.txt + && pip install -r requirements.txt \ + && cat requirements.txt | grep -v futures > /tmp/requirements.txt \ + && pip3 install -r /tmp/requirements.txt {% else %} && cat requirements.txt | grep -v futures > /tmp/requirements.txt \ && pip3 install -r /tmp/requirements.txt