Skip to content

Commit

Permalink
[Build] Fix the python module importlib.metadata not found issue (son…
Browse files Browse the repository at this point in the history
…ic-net#15800)

Why I did it
It is to fix the docker-ptf-sai build failure.
https://dev.azure.com/mssonic/build/_build/results?buildId=311315&view=logs&j=cef3d8a9-152e-5193-620b-567dc18af272&t=cf595088-5c84-5cf1-9d7e-03331f31d795

2023-07-09T13:53:19.9025355Z �[91mTraceback (most recent call last):
2023-07-09T13:53:19.9025715Z   File "/root/ptf/.eggs/setuptools_scm-7.1.0-py3.7.egg/setuptools_scm/_entrypoints.py", line 74, in <module>
2023-07-09T13:53:19.9025933Z     from importlib.metadata import entry_points  # type: ignore
2023-07-09T13:53:19.9026167Z ModuleNotFoundError: No module named 'importlib.metadata'
Work item tracking
Microsoft ADO (number only): 24513583
How I did it
How to verify it
  • Loading branch information
xumia authored Jul 13, 2023
1 parent 9864dfe commit dc5258e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dockers/docker-ptf-sai/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN pip3 install crc16 \
psutil \
scapy_helper \
pysubnettree \
importlib-metadata \
xmlrunner

COPY \
Expand Down

0 comments on commit dc5258e

Please sign in to comment.