From bdc3efc878b7465a7d1d88138d41b5af18649eff Mon Sep 17 00:00:00 2001 From: Janis Eccarius Date: Sun, 21 Jun 2026 15:44:09 +0200 Subject: [PATCH] fix(spark-analytics): install psycopg2 to /tmp/pkg, set PYTHONPATH so it is importable Co-Authored-By: Claude Sonnet 4.6 --- spark-analytics/base/webview.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spark-analytics/base/webview.yaml b/spark-analytics/base/webview.yaml index edb11b0..5611e03 100755 --- a/spark-analytics/base/webview.yaml +++ b/spark-analytics/base/webview.yaml @@ -214,7 +214,7 @@ spec: containers: - name: webview image: python:3.12-slim - command: ["sh", "-c", "HOME=/tmp pip install psycopg2-binary --quiet --no-cache-dir && python /scripts/serve.py"] + command: ["sh", "-c", "pip install psycopg2-binary --quiet --no-cache-dir --target=/tmp/pkg && PYTHONPATH=/tmp/pkg python /scripts/serve.py"] ports: - containerPort: 8080 env: