{"record":{"id":"e217c5fa1fb60088","repo":"deepseek-ai/deepseek-harness","slug":"could-not-read-runtime-platform-manifest-from-pat","errorCode":null,"errorMessage":"could not read runtime platform manifest from {path}","messagePattern":"could not read runtime platform manifest from (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"python/sdk-runtime/hatch_build.py","lineNumber":18,"sourceCode":"from __future__ import annotations\n\nimport json\nimport os\nimport platform\nimport stat\nfrom pathlib import Path\n\nfrom hatchling.builders.hooks.plugin.interface import BuildHookInterface\n\n\ndef _load_platforms() -> dict[str, tuple[str, str]]:\n    \"\"\"Load and validate the platform manifest inside an isolated wheel build.\"\"\"\n    path = Path(__file__).with_name(\"platforms.json\")\n    try:\n        payload = json.loads(path.read_text())\n    except (OSError, json.JSONDecodeError) as error:\n        raise RuntimeError(f\"could not read runtime platform manifest from {path}\") from error\n    if not isinstance(payload, dict) or not payload:\n        raise RuntimeError(f\"{path} must contain a non-empty platform object\")\n    platforms: dict[str, tuple[str, str]] = {}\n    for name, raw in payload.items():\n        if (\n            not isinstance(name, str)\n            or not isinstance(raw, dict)\n            or set(raw) != {\"tag\", \"executable\"}\n            or not isinstance(raw[\"tag\"], str)\n            or not isinstance(raw[\"executable\"], str)\n        ):\n            raise RuntimeError(f\"{path} platform entries must contain string tag and executable fields\")\n        platforms[name] = (raw[\"tag\"], raw[\"executable\"])\n    return platforms\n\n\n_PLATFORMS = _load_platforms()\n","sourceCodeStart":1,"sourceCodeEnd":36,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/python/sdk-runtime/hatch_build.py#L1-L36","documentation":"Error \"could not read runtime platform manifest from {path}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at python/sdk-runtime/hatch_build.py:18 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the manifest path or its read permissions so the build hook can read the runtime platform manifest."],"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"}