Skip to content

Commit

Permalink
Update Dockerfile.saichallenger-client
Browse files Browse the repository at this point in the history
Fixing below error
/usr/local/lib/python3.9/dist-packages/saichallenger/common/sai_client/sai_thrift_client/sai_thrift_client.py:8: in <module>
    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 .
  • Loading branch information
vikumarks authored Nov 1, 2024
1 parent 01260d4 commit c6c5078
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dash-pipeline/dockerfiles/Dockerfile.saichallenger-client
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit c6c5078

Please sign in to comment.