deepseek-ai/deepseek-harness · error · RuntimeError

could not read runtime platform manifest from {path}

Error message

could not read runtime platform manifest from {path}

What it means

Error "could not read runtime platform manifest from {path}" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at python/sdk-runtime/hatch_build.py:18

from __future__ import annotations

import json
import os
import platform
import stat
from pathlib import Path

from hatchling.builders.hooks.plugin.interface import BuildHookInterface


def _load_platforms() -> dict[str, tuple[str, str]]:
    """Load and validate the platform manifest inside an isolated wheel build."""
    path = Path(__file__).with_name("platforms.json")
    try:
        payload = json.loads(path.read_text())
    except (OSError, json.JSONDecodeError) as error:
        raise RuntimeError(f"could not read runtime platform manifest from {path}") from error
    if not isinstance(payload, dict) or not payload:
        raise RuntimeError(f"{path} must contain a non-empty platform object")
    platforms: dict[str, tuple[str, str]] = {}
    for name, raw in payload.items():
        if (
            not isinstance(name, str)
            or not isinstance(raw, dict)
            or set(raw) != {"tag", "executable"}
            or not isinstance(raw["tag"], str)
            or not isinstance(raw["executable"], str)
        ):
            raise RuntimeError(f"{path} platform entries must contain string tag and executable fields")
        platforms[name] = (raw["tag"], raw["executable"])
    return platforms


_PLATFORMS = _load_platforms()

View on GitHub (pinned to b150a551b8)

Solutions

  1. Fix the manifest path or its read permissions so the build hook can read the runtime platform manifest.

When it happens

Trigger: Thrown at python/sdk-runtime/hatch_build.py:18 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/e217c5fa1fb60088. Report an issue: GitHub.