langchain-ai/langgraph · error · ValueError

source.kind 'uv' requires a base image with uv support…

Error message

source.kind 'uv' requires a base image with uv support (langchain/langgraph-api >= 0.2.47)

What it means

uv-based source builds require a base image that ships uv; _image_supports_uv returned False for the configured base image (too old, below langchain/langgraph-api >= 0.2.47), so ValueError stops the build before generating uv install steps.

Solutions

  1. Upgrade the base image in langgraph.json (image field) to langchain/langgraph-api >= 0.2.47.
  2. Or change source.kind from 'uv' to 'pip' for older images.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at libs/cli/langgraph_cli/uv_lock.py:887 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of langchain-ai/langgraph@38031739e5 (2026-08-26). Data as JSON: /api/errors/4d6921c0743d74b9. Report an issue: GitHub.

Appendix: source

Thrown at libs/cli/langgraph_cli/uv_lock.py:887

    config_path: pathlib.Path,
    config: Config,
    base_image: str,
    api_version: str | None = None,
    *,
    build_tools_to_uninstall: tuple[str, ...] | None,
) -> tuple[str, dict[str, str]]:
    from langgraph_cli.config import (
        DEFAULT_NODE_VERSION,
        _build_python_install_commands,
        _build_runtime_env_vars,
        _get_node_pm_install_cmd,
        _get_pip_cleanup_lines,
        _image_supports_uv,
        docker_tag,
    )

    if not _image_supports_uv(base_image):
        raise ValueError(
            "source.kind 'uv' requires a base image with uv support "
            "(langchain/langgraph-api >= 0.2.47)"
        )

    config_root = config_path.parent.resolve()
    install_cmd = "uv pip install --system"
    _, global_reqs_pip_install, pip_config_file_str = _build_python_install_commands(
        config, install_cmd
    )
    plan = _plan_uv_lock_workspace(config_path, config)

    _update_uv_lock_graph_paths(config_path, config, plan)
    for section, key in [
        ("auth", "path"),
        ("encryption", "path"),
        ("checkpointer", "path"),
        ("http", "app"),
    ]:

View on GitHub (pinned to 38031739e5)