From c6c5078cb6dfbb2233ca9c5f0bf1a0623e5df205 Mon Sep 17 00:00:00 2001 From: Vinod Kumar <119973184+vikumarks@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:04:12 -0700 Subject: [PATCH] Update Dockerfile.saichallenger-client Fixing below error /usr/local/lib/python3.9/dist-packages/saichallenger/common/sai_client/sai_thrift_client/sai_thrift_client.py:8: in from saichallenger.common.sai_client.sai_thrift_client.sai_thrift_utils import * _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ import re from itertools import zip_longest import ipaddress import json > from sai_thrift import sai_headers E ModuleNotFoundError: No module named 'sai_thrift' python3 setup.py install changed to pip3 install . --- dash-pipeline/dockerfiles/Dockerfile.saichallenger-client | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dash-pipeline/dockerfiles/Dockerfile.saichallenger-client b/dash-pipeline/dockerfiles/Dockerfile.saichallenger-client index b0c8f4588..1920962cb 100644 --- a/dash-pipeline/dockerfiles/Dockerfile.saichallenger-client +++ b/dash-pipeline/dockerfiles/Dockerfile.saichallenger-client @@ -11,15 +11,15 @@ ADD SAI/rpc/saithrift-0.9.tar.gz / # Install the python libraries RUN cd /saithrift-0.9 && \ - python3 setup.py install && \ + pip3 install . && \ cd / && \ rm -rf saithrift-0.9 &&\ cd thrift-0.11.0 && \ - python3 setup.py install && \ + pip3 install . && \ cd / &&\ rm -rf thrift-0.11.0 && \ cd /SAI/test/ptf && \ - python3 setup.py install && \ + pip3 install . && \ ln -s ${DASH_PATH}/test/test-cases/scale/saic ${SAI_CHALLENGER_PATH}/dash_tests CMD ["/usr/bin/supervisord"]