deepseek-ai/deepseek-harness · error · RuntimeError
{path} must contain a non-empty platform object
Error message
{path} must contain a non-empty platform object What it means
Error "{path} must contain a non-empty platform object" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at python/sdk-runtime/hatch_build.py:20
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()
def _host_platform_tag() -> str:View on GitHub (pinned to b150a551b8)
Solutions
- Populate the manifest file with a non-empty platform object mapping tags to executables.
When it happens
Trigger: Thrown at python/sdk-runtime/hatch_build.py:20 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/f448fdaa305cd763.
Report an issue: GitHub.