{"record":{"id":"c5fb241f3e163807","repo":"langchain-ai/langgraph","slug":"could-not-find-local-module-resolved","errorCode":null,"errorMessage":"Could not find local module: {resolved}","messagePattern":"Could not find local module: (.+?)","errorType":"exception","errorClass":"FileNotFoundError","httpStatus":null,"severity":"error","filePath":"libs/cli/langgraph_cli/config.py","lineNumber":895,"sourceCode":"        else:\n            raise ValueError(\n                f\"Graph '{graph_id}' must be a string or a dictionary with a 'path' key.\"\n            )\n\n        module_str, _, attr_str = import_str.partition(\":\")\n        if not module_str or not attr_str:\n            message = (\n                'Import string \"{import_str}\" must be in format \"<module>:<attribute>\".'\n            )\n            raise ValueError(message.format(import_str=import_str))\n\n        # Check for either forward slash or backslash in the module string\n        # to determine if it's a file path.\n        if \"/\" in module_str or \"\\\\\" in module_str:\n            # Resolve the local path properly on the current OS\n            resolved = (config_path.parent / module_str).resolve()\n            if not resolved.exists():\n                raise FileNotFoundError(f\"Could not find local module: {resolved}\")\n            elif not resolved.is_file():\n                raise IsADirectoryError(f\"Local module must be a file: {resolved}\")\n            else:\n                for path in local_deps.real_pkgs:\n                    if resolved.is_relative_to(path):\n                        container_path = (\n                            pathlib.Path(\"/deps\")\n                            / path.name\n                            / resolved.relative_to(path)\n                        )\n                        module_str = container_path.as_posix()\n                        break\n                else:\n                    for faux_pkg, (_, destpath) in local_deps.faux_pkgs.items():\n                        if resolved.is_relative_to(faux_pkg):\n                            container_subpath = resolved.relative_to(faux_pkg)\n                            # Construct the final path, ensuring POSIX style\n                            module_str = f\"{destpath}/{container_subpath.as_posix()}\"","sourceCodeStart":877,"sourceCodeEnd":913,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/cli/langgraph_cli/config.py#L877-L913","documentation":"Error \"Could not find local module: {resolved}\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/cli/langgraph_cli/config.py:895 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"}