{"record":{"id":"8accd873b4d7a108","repo":"deepseek-ai/deepseek-harness","slug":"deepseek-harness-runtime-bin-is-missing-metadata","errorCode":null,"errorMessage":"deepseek-harness-runtime-bin is missing {metadata}","messagePattern":"deepseek-harness-runtime-bin is missing (.+?)","errorType":"exception","errorClass":"FileNotFoundError","httpStatus":null,"severity":"error","filePath":"python/sdk-runtime/src/deepseek_harness_runtime/__init__.py","lineNumber":51,"sourceCode":"\n_PLATFORM_TAGS = {\"linux\": \"linux\", \"darwin\": \"macos\"}\n_ARCH_TAGS = {\"x86_64\": \"x64\", \"amd64\": \"x64\", \"arm64\": \"arm64\", \"aarch64\": \"arm64\"}\n\n_EXE_ACQUISITION_HINT = (\n    \"Two ways to get the executable: run `scripts/build-exe-for-python-sdk.ts` (via tsx) in a \"\n    \"deepseek-harness checkout, or install the matching `deepseek-harness-runtime-bin` platform \"\n    \"wheel retained by the `build-exe-for-python-sdk` CI workflow. For local development \"\n    \"against a repo source build, explicitly select the dev-only node carrier with \"\n    f\"{RUNTIME_MODE_ENV_VAR}=node (or resolve_bundled_launch_args('node')).\"\n)\n\n\ndef bundled_package_dir() -> Path:\n    \"\"\"Root directory of the installed runtime package data (the directory of this module).\"\"\"\n    root = Path(__file__).resolve().parent\n    metadata = root / PACKAGE_METADATA_FILENAME\n    if not metadata.is_file():\n        raise FileNotFoundError(f\"deepseek-harness-runtime-bin is missing {metadata}\")\n    return root\n\n\ndef bundled_default_config_path() -> Path:\n    \"\"\"Path of the checked-in default runtime configuration (``runtime/cordis.yml``).\n\n    The client SDK injects this path via ``$DSH_CORDIS_CONFIG`` when the caller\n    supplies no config and the launch resolves to the bundled runtime — the\n    runtime binary itself always demands an explicit config.\n    \"\"\"\n    path = bundled_package_dir() / \"runtime\" / \"cordis.yml\"\n    if not path.is_file():\n        raise FileNotFoundError(\n            f\"deepseek-harness-runtime-bin is missing the default runtime config at {path}\"\n        )\n    return path\n\n","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/python/sdk-runtime/src/deepseek_harness_runtime/__init__.py#L33-L69","documentation":"Error \"deepseek-harness-runtime-bin is missing {metadata}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at python/sdk-runtime/src/deepseek_harness_runtime/__init__.py:51 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install the matching deepseek-harness-runtime-bin platform wheel so its metadata is present."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}