From f193f3cce02a1993ce5fa360102ce34130972374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dulko?= Date: Tue, 10 Oct 2023 12:44:28 +0200 Subject: [PATCH] CI: Fix "error: externally-managed-environment" Seems like the CI OS changed and now it won't allow installing Python packages in the system without explicitly requesting that. This commit solves this by installing needed packages through `apt-get`. --- tests/ci-occm-e2e.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ci-occm-e2e.sh b/tests/ci-occm-e2e.sh index f03f618b1b..17ee05b3d1 100755 --- a/tests/ci-occm-e2e.sh +++ b/tests/ci-occm-e2e.sh @@ -44,7 +44,8 @@ cleanup() { } trap cleanup EXIT -python3 -m pip install requests ansible +apt-get update +apt-get install -y python3-requests ansible # If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos. if [ -n "${BOSKOS_HOST:-}" ]; then