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 \