{"record":{"id":"4e0148346ae8f175","repo":"langchain-ai/langgraph","slug":"local-dependency-must-be-a-directory-resolved","errorCode":null,"errorMessage":"Local dependency must be a directory: {resolved}","messagePattern":"Local dependency must be a directory: (.+?)","errorType":"exception","errorClass":"NotADirectoryError","httpStatus":null,"severity":"error","filePath":"libs/cli/langgraph_cli/config.py","lineNumber":756,"sourceCode":"    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\n            if counter[container_name] > 0:\n                container_name += f\"_{counter[container_name]}\"","sourceCodeStart":738,"sourceCodeEnd":774,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/cli/langgraph_cli/config.py#L738-L774","documentation":"Error \"Local dependency must be a directory: {resolved}\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/cli/langgraph_cli/config.py:756 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"}