From 92490dd2d7e0730eece6c22dd1bbc333269712f0 Mon Sep 17 00:00:00 2001 From: webfarben Date: Mon, 23 Feb 2026 12:56:15 +0100 Subject: [PATCH] =?UTF-8?q?Korrigiere=20venv-Pr=C3=BCfung:=20Pr=C3=BCfe=20?= =?UTF-8?q?ensurepip=20statt=20venv-Modul?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ändere Prüfung von "import venv" zu "import ensurepip" - ensurepip ist die kritische Komponente die im Fehler fehlte - Füge Verifikation nach Installation hinzu - Skript bricht ab wenn Installation fehlschlägt --- install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index acc5dee..197590f 100755 --- a/install.sh +++ b/install.sh @@ -55,8 +55,9 @@ print_success "Python gefunden: $PYTHON_VERSION" # Prüfe und installiere python3-venv wenn nötig print_step "Prüfe venv-Installation..." -if ! python3 -c "import venv" 2>/dev/null; then - print_warning "venv ist nicht installiert. Installation wird versucht..." +# Prüfe ob ensurepip verfügbar ist (wird für venv benötigt) +if ! python3 -c "import ensurepip" 2>/dev/null; then + print_warning "ensurepip ist nicht verfügbar. Installation von python3-venv erforderlich..." # Erkenne Distribution if [ -f /etc/debian_version ]; then @@ -84,6 +85,12 @@ if ! python3 -c "import venv" 2>/dev/null; then print_error "Distribution nicht erkannt. Bitte installieren Sie python3-venv manuell." exit 1 fi + + # Verifiziere Installation + if ! python3 -c "import ensurepip" 2>/dev/null; then + print_error "Installation von $VENV_PACKAGE fehlgeschlagen!" + exit 1 + fi print_success "venv installiert" else print_success "venv ist bereits installiert"