{"record":{"id":"5d0c47e3ddee6402","repo":"langchain-ai/langgraph","slug":"package-name-name-used-in-local-dep-ref-is","errorCode":null,"errorMessage":"Package name '{name}' used in local dep '{ref}' is reserved. Rename the directory.","messagePattern":"Package name '(.+?)' used in local dep '(.+?)' is reserved\\. Rename the directory\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"libs/cli/langgraph_cli/config.py","lineNumber":731,"sourceCode":"        \"src\",\n        \"langgraph-api\",\n        \"langgraph_api\",\n        \"langgraph\",\n        \"langchain-core\",\n        \"langchain_core\",\n        \"pydantic\",\n        \"orjson\",\n        \"fastapi\",\n        \"uvicorn\",\n        \"psycopg\",\n        \"httpx\",\n        \"langsmith\",\n    }\n    counter = Counter()\n\n    def check_reserved(name: str, ref: str):\n        if name in reserved:\n            raise ValueError(\n                f\"Package name '{name}' used in local dep '{ref}' is reserved. \"\n                \"Rename the directory.\"\n            )\n        reserved.add(name)\n\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).","sourceCodeStart":713,"sourceCodeEnd":749,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/cli/langgraph_cli/config.py#L713-L749","documentation":"Error \"Package name '{name}' used in local dep '{ref}' is reserved. Rename the directory.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/cli/langgraph_cli/config.py:731 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"}