From 9173e35bd5aedd66462275702618129409af82e4 Mon Sep 17 00:00:00 2001 From: Yuan Tang Date: Mon, 13 Jan 2025 23:17:21 -0500 Subject: [PATCH] Fix incorrect Python binary path for UBI9 image (#757) This was missed during a rebase in https://github.com/meta-llama/llama-stack/pull/676. Fixed the following error: ``` Error: crun: executable file `python` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found ++ error_handler 88 ++ echo 'Error occurred in script at line: 88' Error occurred in script at line: 88 ``` cc @hardikjshah Signed-off-by: Yuan Tang --- llama_stack/distribution/build_container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_stack/distribution/build_container.sh b/llama_stack/distribution/build_container.sh index 5d6e1d5cb..286ade992 100755 --- a/llama_stack/distribution/build_container.sh +++ b/llama_stack/distribution/build_container.sh @@ -59,7 +59,7 @@ WORKDIR /app RUN microdnf -y update && microdnf install -y iputils net-tools wget \ vim-minimal python3.11 python3.11-pip python3.11-wheel \ - python3.11-setuptools && ln -s /bin/pip3.11 /bin/pip && microdnf clean all + python3.11-setuptools && ln -s /bin/pip3.11 /bin/pip && ln -s /bin/python3.11 /bin/python && microdnf clean all EOF else