deepseek-ai/deepseek-harness · error · RuntimeError
unsupported deepseek-harness-runtime-bin build platform: {ke
Error message
unsupported deepseek-harness-runtime-bin build platform: {key} What it means
Error "unsupported deepseek-harness-runtime-bin build platform: {key}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at python/sdk-runtime/hatch_build.py:46
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
class RuntimeBuildHook(BuildHookInterface):
"""Assign the native wheel tag and reject incomplete or mixed-platform payloads."""
def initialize(self, version: str, build_data: dict[str, object]) -> None:
if version == "editable":
return
if self.target_name == "sdist":
raise RuntimeError(
"deepseek-harness-runtime-bin is wheel-only; build and publish platform wheels only."
)
platform_tag = os.environ.get("DSH_RUNTIME_PLATFORM_TAG") or _host_platform_tag()
matches = [value for value in _PLATFORMS.values() if value[0] == platform_tag]
if len(matches) != 1:
supported = ", ".join(value[0] for value in _PLATFORMS.values())
raise RuntimeError(View on GitHub (pinned to b150a551b8)
Solutions
- Use one of the supported platform keys in the manifest; remove or rename the unsupported entry.
When it happens
Trigger: Thrown at python/sdk-runtime/hatch_build.py:46 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/b18bfe8a5960c47c.
Report an issue: GitHub.