From 5c46352bfdecef60bba8d53780dda865534c1a6c Mon Sep 17 00:00:00 2001 From: Devin Date: Wed, 27 May 2026 21:53:03 -0400 Subject: [PATCH] fix(presets): pin venv to Python >=3.12 in setup.sh uv venv with no --python defaults to the first system interpreter, which on macOS is CommandLineTools Python 3.9. That fails the subsequent openhands-sdk install since the SDK requires Python >=3.12. --- openhands/automation/presets/plugin/setup.sh | 4 +++- openhands/automation/presets/prompt/setup.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/openhands/automation/presets/plugin/setup.sh b/openhands/automation/presets/plugin/setup.sh index 5855d97..3ec3465 100644 --- a/openhands/automation/presets/plugin/setup.sh +++ b/openhands/automation/presets/plugin/setup.sh @@ -24,7 +24,9 @@ if [ -z "$SDK_VERSION" ]; then fi echo "[setup] Creating isolated virtual environment" -uv venv .venv --quiet +# Pin >=3.12 so uv doesn't default to an older system Python (e.g. macOS +# CommandLineTools 3.9), which can't satisfy openhands-sdk's requires-python. +uv venv .venv --python '>=3.12' --quiet echo "[setup] Installing OpenHands SDK from PyPI (version: $SDK_VERSION)" uv pip install --quiet \ diff --git a/openhands/automation/presets/prompt/setup.sh b/openhands/automation/presets/prompt/setup.sh index 5855d97..3ec3465 100644 --- a/openhands/automation/presets/prompt/setup.sh +++ b/openhands/automation/presets/prompt/setup.sh @@ -24,7 +24,9 @@ if [ -z "$SDK_VERSION" ]; then fi echo "[setup] Creating isolated virtual environment" -uv venv .venv --quiet +# Pin >=3.12 so uv doesn't default to an older system Python (e.g. macOS +# CommandLineTools 3.9), which can't satisfy openhands-sdk's requires-python. +uv venv .venv --python '>=3.12' --quiet echo "[setup] Installing OpenHands SDK from PyPI (version: $SDK_VERSION)" uv pip install --quiet \