Problem
When uv (the Python package manager) is not installed, scripts that depend on it fail without a helpful error message. The agent or user sees cryptic errors instead of clear guidance on how to install uv.
Expected Behavior
When uv is missing:
- Detect that
uv is not available
- Show a clear error message explaining
uv is required
- Provide installation instructions for common platforms:
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Or via pip
pip install uv
Current Behavior
Scripts fail with errors like:
command not found: uv
- Or the script proceeds and fails later with confusing errors
Suggested Solution
Add a check at the start of scripts or in the toolset initialization:
if ! command -v uv &> /dev/null; then
echo "Error: uv is required but not installed."
echo ""
echo "Install uv:"
echo " curl -LsSf https://astral.sh/uv/install.sh | sh"
echo ""
echo "See: https://docs.astral.sh/uv/"
exit 1
fi
Or handle it in the CLI toolset's dependency checking mechanism.
Problem
When
uv(the Python package manager) is not installed, scripts that depend on it fail without a helpful error message. The agent or user sees cryptic errors instead of clear guidance on how to installuv.Expected Behavior
When
uvis missing:uvis not availableuvis requiredCurrent Behavior
Scripts fail with errors like:
command not found: uvSuggested Solution
Add a check at the start of scripts or in the toolset initialization:
Or handle it in the CLI toolset's dependency checking mechanism.