deepseek-ai/deepseek-harness · error · RuntimeError
{path} platform entries must contain string tag and executab
Error message
{path} platform entries must contain string tag and executable fields What it means
Error "{path} platform entries must contain string tag and executable fields" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at python/sdk-runtime/hatch_build.py:30
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()
def _host_platform_tag() -> str:
machine = platform.machine().lower()
arch = "arm64" if machine in {"arm64", "aarch64"} else "x64" if machine in {"x86_64", "amd64"} else machine
system = platform.system().lower()
key = f"macos-{arch}" if system == "darwin" else f"linux-{arch}" if system == "linux" else system
try:
return _PLATFORMS[key][0]
except KeyError as exc:
raise RuntimeError(f"unsupported deepseek-harness-runtime-bin build platform: {key}") from exc
View on GitHub (pinned to b150a551b8)
Solutions
- Give every platform entry string tag and executable fields in the manifest.
When it happens
Trigger: Thrown at python/sdk-runtime/hatch_build.py:30 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/bcc67e6751560218.
Report an issue: GitHub.