{"record":{"id":"a6d7724517c633b1","repo":"langchain-ai/deepagents","slug":"missing-core-dependency-for-the-interpreter-reins","errorCode":null,"errorMessage":"Missing core dependency for the interpreter. Reinstall dcode to restore langchain-quickjs, or relaunch with --no-interpreter to skip it.","messagePattern":"Missing core dependency for the interpreter\\. Reinstall dcode to restore langchain-quickjs, or relaunch with --no-interpreter to skip it\\.","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"critical","filePath":"libs/code/deepagents_code/extras_info.py","lineNumber":1480,"sourceCode":"        logger.debug(\"find_spec failed for langchain_quickjs\", exc_info=True)\n        found = False\n\n    if not found:\n        from deepagents_code.config import _is_editable_install\n\n        if _is_editable_install():\n            msg = (\n                \"Missing core dependency for the interpreter. Editable install \"\n                \"detected — refresh the local environment with uv sync, or \"\n                \"relaunch with --no-interpreter to skip it.\"\n            )\n        else:\n            msg = (\n                \"Missing core dependency for the interpreter. \"\n                \"Reinstall dcode to restore langchain-quickjs, or relaunch with \"\n                \"--no-interpreter to skip it.\"\n            )\n        raise ImportError(msg)\n\n\ndef format_extras_status_plain(status: ExtrasStatus) -> str:\n    \"\"\"Render an `ExtrasStatus` mapping as column-aligned plain text.\n\n    Suitable for stdout in non-interactive contexts (e.g. the `--version`\n    CLI flag) where a markdown renderer is unavailable.\n\n    Args:\n        status: Mapping returned by `get_extras_status`.\n\n    Returns:\n        Multi-line string with a heading and one `extra  package  version`\n            row per installed package.\n\n            Returns an empty string when `status` is empty.\n    \"\"\"\n    if not status:","sourceCodeStart":1462,"sourceCodeEnd":1498,"githubUrl":"https://github.com/langchain-ai/deepagents/blob/a1af029e6e73cb17c36bff823d227747b28e91e1/libs/code/deepagents_code/extras_info.py#L1462-L1498","documentation":"`verify_interpreter_deps` raises `ImportError` when a core dependency required by the built-in JS interpreter (`langchain-quickjs`) is missing from the environment. The message tells the user the interpreter cannot run and offers two remedies: reinstall dcode, or relaunch with `--no-interpreter` to skip the interpreter subsystem.","triggerScenarios":"Launching dcode (via `_verify_interpreter_or_exit`) when `langchain-quickjs` (or a sub-dependency) is not importable — uninstalled, removed by a cleanup, broken editable install, or a mismatched/partial install.","commonSituations":"Installing dcode with a minimal extra set that excludes the interpreter dependency; pip resolving away the package during a dependency upgrade; virtualenv recreated without all extras; damaged site-packages after an interrupted install.","solutions":["Reinstall dcode so `langchain-quickjs` is restored (e.g. `pip install --force-reinstall dcode` or install with the interpreter extra)","Run `pip install langchain-quickjs` directly into the active environment","Relaunch with `--no-interpreter` if the JS interpreter is not needed for the session"],"exampleFix":"// before\n$ dcode\nImportError: Missing core dependency for the interpreter. ...\n\n// after\n$ pip install langchain-quickjs\n$ dcode   # or: dcode --no-interpreter","handlingStrategy":"try-catch","validationCode":"import importlib.util\nif importlib.util.find_spec(\"langchain_quickjs\") is None:\n    print(\"interpreter deps missing; reinstall dcode or use --no-interpreter\")","typeGuard":"def interpreter_available() -> bool:\n    import importlib.util\n    return importlib.util.find_spec(\"langchain_quickjs\") is not None","tryCatchPattern":"try:\n    verify_interpreter_deps()\nexcept ImportError:\n    launch_args.append(\"--no-interpreter\")  # or prompt a reinstall","preventionTips":["Install dcode with the interpreter extra included","Run `pip check` after dependency changes in the venv","Verify imports in CI before shipping environments"],"tags":["dependencies","interpreter","startup"],"backgroundTag":"missing-core-dependency","analyzedSha":"a1af029e6e73cb17c36bff823d227747b28e91e1","analyzedAt":"2026-08-29T11:43:24.718Z","schemaVersion":2},"datasetVersion":"2026-08-29T12:17:43.993Z"}