langchain-ai/langgraph · error · FileNotFoundError

Encryption file not found

Error message

Encryption file not found: {resolved} (from {path_str})

What it means

_update_encryption_path resolves the relative encryption.path from langgraph.json against the config directory; the resolved encryption key/module file does not exist, so FileNotFoundError is raised before the image build.

Solutions

  1. Fix the encryption.path value in langgraph.json.
  2. Create the missing file or remove the 'encryption' section.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at libs/cli/langgraph_cli/config.py:982 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/ff4888919ab3cb44. Report an issue: GitHub.

Appendix: source

Thrown at libs/cli/langgraph_cli/config.py:982

        f"Current dependencies: {config['dependencies']}"
    )


def _update_encryption_path(
    config_path: pathlib.Path, config: Config, local_deps: LocalDeps
) -> None:
    """Update encryption.path to use Docker container paths."""
    encryption_conf = config.get("encryption")
    if not encryption_conf or not (path_str := encryption_conf.get("path")):
        return

    module_str, sep, attr_str = path_str.partition(":")
    if not sep or not module_str.startswith("."):
        return  # Already validated or absolute path

    resolved = config_path.parent / module_str
    if not resolved.exists():
        raise FileNotFoundError(
            f"Encryption file not found: {resolved} (from {path_str})"
        )
    if not resolved.is_file():
        raise IsADirectoryError(f"Encryption path must be a file: {resolved}")

    # Check faux packages first (higher priority)
    for faux_path, (_, destpath) in local_deps.faux_pkgs.items():
        if resolved.is_relative_to(faux_path):
            new_path = f"{destpath}/{resolved.relative_to(faux_path)}:{attr_str}"
            encryption_conf["path"] = new_path
            return

    # Check real packages
    for real_path in local_deps.real_pkgs:
        if resolved.is_relative_to(real_path):
            new_path = (
                f"/deps/{real_path.name}/{resolved.relative_to(real_path)}:{attr_str}"
            )

View on GitHub (pinned to 38031739e5)