From 54949e2ca926d6fa76d52a53a7701b7a4710b7b2 Mon Sep 17 00:00:00 2001 From: xavix-yo Date: Mon, 20 Jul 2026 19:00:04 +0100 Subject: [PATCH] Fix: seed pip into uv-created venv so MCP connector dep install works uv venv does not bundle pip by default (unlike python3 -m venv), so when the venv python was on PATH, ensure_installed_host's 'python3 -m pip install' failed with 'No module named pip'. Apply --seed across the 4 copies of the venv-setup block (install.sh, install-nightly.sh, run.sh, run-docker.sh). --- install-nightly.sh | 2 +- install.sh | 2 +- run-docker.sh | 2 +- run.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install-nightly.sh b/install-nightly.sh index b4688e2..c12883c 100755 --- a/install-nightly.sh +++ b/install-nightly.sh @@ -258,7 +258,7 @@ REQUIREMENTS="${INSTALL_DIR}/requirements.txt" if [ ! -f "$VENV_DIR/bin/python3" ]; then if command -v uv >/dev/null 2>&1; then - uv venv "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ + uv venv --seed "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ && info "✔ Python venv ready (uv)" \ || warn "Python venv setup failed — Python MCP servers will be unavailable." elif command -v python3 >/dev/null 2>&1; then diff --git a/install.sh b/install.sh index bfd4467..60b6f83 100755 --- a/install.sh +++ b/install.sh @@ -263,7 +263,7 @@ REQUIREMENTS="${INSTALL_DIR}/requirements.txt" if [ ! -f "$VENV_DIR/bin/python3" ]; then if command -v uv >/dev/null 2>&1; then - uv venv "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ + uv venv --seed "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ && info "✔ Python venv ready (uv)" \ || warn "Python venv setup failed — Python MCP servers will be unavailable." elif command -v python3 >/dev/null 2>&1; then diff --git a/run-docker.sh b/run-docker.sh index 4ea636b..af33a4a 100644 --- a/run-docker.sh +++ b/run-docker.sh @@ -14,7 +14,7 @@ REQUIREMENTS="requirements.txt" if [ ! -f "$VENV_DIR/bin/python3" ] && [ -f "$REQUIREMENTS" ]; then if command -v uv >/dev/null 2>&1; then echo "[run-docker.sh] Setting up Python venv with uv …" - uv venv "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ + uv venv --seed "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ && echo "[run-docker.sh] Python venv ready." \ || echo "[run-docker.sh] Warning: Python venv setup failed — Python MCP servers will be unavailable." elif command -v python3 >/dev/null 2>&1; then diff --git a/run.sh b/run.sh index 7ecc736..7a78469 100755 --- a/run.sh +++ b/run.sh @@ -53,7 +53,7 @@ REQUIREMENTS="requirements.txt" if [ ! -f "$VENV_DIR/bin/python3" ]; then if command -v uv >/dev/null 2>&1; then echo "[run.sh] Setting up Python venv with uv …" - uv venv "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ + uv venv --seed "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ && echo "[run.sh] Python venv ready." \ || echo "[run.sh] Warning: Python venv setup failed — Python MCP servers will be unavailable." elif command -v python3 >/dev/null 2>&1; then