diff --git a/sonic-slave-bookworm/Dockerfile.j2 b/sonic-slave-bookworm/Dockerfile.j2 index 74afcaa668f..e980807e763 100644 --- a/sonic-slave-bookworm/Dockerfile.j2 +++ b/sonic-slave-bookworm/Dockerfile.j2 @@ -561,7 +561,9 @@ RUN patch -p1 -i /disable-non-manylinux.patch /usr/local/lib/python3.11/dist-pac RUN pip3 install fastentrypoints mock # For DASH BMv2 -RUN pip3 install jsonpath_ng +# Exclude jsonpath_ng 1.8.0 because it causes DASH pipeline failures +# In version 1.8.0, dict is flattened to a list, which causes type error in DASH. +RUN pip3 install jsonpath_ng!=1.8.0 RUN pip3 install pyyaml-include # For building sonic_ycabled diff --git a/sonic-slave-trixie/Dockerfile.j2 b/sonic-slave-trixie/Dockerfile.j2 index 99b0f6dd7d9..e1ec7a1f834 100644 --- a/sonic-slave-trixie/Dockerfile.j2 +++ b/sonic-slave-trixie/Dockerfile.j2 @@ -568,7 +568,9 @@ RUN eatmydata apt-get install -y golang-go \ RUN pip3 install fastentrypoints mock # For DASH BMv2 -RUN pip3 install jsonpath_ng pyyaml-include +# Exclude jsonpath_ng 1.8.0 because it causes DASH pipeline failures +# In version 1.8.0, dict is flattened to a list, which causes type error in DASH. +RUN pip3 install jsonpath_ng!=1.8.0 pyyaml-include # For building sonic_ycabled # Note: Match version in trixie