{"record":{"id":"3a8dd06964981f2d","repo":"langchain-ai/langgraph","slug":"could-not-find-local-dependency-resolved","errorCode":null,"errorMessage":"Could not find local dependency: {resolved}","messagePattern":"Could not find local dependency: (.+?)","errorType":"exception","errorClass":"FileNotFoundError","httpStatus":null,"severity":"error","filePath":"libs/cli/langgraph_cli/config.py","lineNumber":754,"sourceCode":"\n    pip_reqs = []\n    real_pkgs = {}\n    faux_pkgs = {}\n    working_dir: str | None = None\n    additional_contexts: list[pathlib.Path] = []\n\n    for local_dep in config[\"dependencies\"]:\n        if not local_dep.startswith(\".\"):\n            # If the dependency is not a local path, skip it\n            continue\n\n        # Verify that the local dependency can be resolved\n        # (e.g., this would raise an informative error if a user mistyped a path).\n        resolved = (config_path.parent / local_dep).resolve()\n\n        # validate local dependency\n        if not resolved.exists():\n            raise FileNotFoundError(f\"Could not find local dependency: {resolved}\")\n        elif not resolved.is_dir():\n            raise NotADirectoryError(\n                f\"Local dependency must be a directory: {resolved}\"\n            )\n        elif resolved == config_path.parent:\n            pass\n        elif config_path.parent not in resolved.parents:\n            additional_contexts.append(resolved)\n\n        # Check for pyproject.toml or setup.py\n        # If found, treat as a real package, if not treat as a faux package.\n        # For faux packages, we'll also check for presence of requirements.txt.\n        files = os.listdir(resolved)\n        if \"pyproject.toml\" in files or \"setup.py\" in files:\n            # real package\n\n            # assign a unique folder name\n            container_name = resolved.name","sourceCodeStart":736,"sourceCodeEnd":772,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/cli/langgraph_cli/config.py#L736-L772","documentation":"Error \"Could not find local dependency: {resolved}\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/cli/langgraph_cli/config.py:754 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}