{"record":{"id":"a0206eb9b740e30c","repo":"tinyhumansai/openhuman","slug":"no-managed-standalone-python-distribution-for-host","errorCode":null,"errorMessage":"no managed standalone Python distribution for host {os}/{arch}","messagePattern":"no managed standalone Python distribution for host (.+?)/(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/runtime/python/downloader.rs","lineNumber":180,"sourceCode":"        release_tag: release_tag.to_string(),\n        asset_name: asset.name.clone(),\n        url: asset.browser_download_url.clone(),\n        version,\n        expected_sha256,\n    })\n}\n\nfn host_asset_suffix() -> Result<&'static str> {\n    let os = std::env::consts::OS;\n    let arch = std::env::consts::ARCH;\n    match (os, arch) {\n        (\"macos\", \"aarch64\") => Ok(\"aarch64-apple-darwin-install_only.tar.gz\"),\n        (\"macos\", \"x86_64\") => Ok(\"x86_64-apple-darwin-install_only.tar.gz\"),\n        (\"linux\", \"aarch64\") => Ok(\"aarch64-unknown-linux-gnu-install_only.tar.gz\"),\n        (\"linux\", \"x86_64\") => Ok(\"x86_64-unknown-linux-gnu-install_only.tar.gz\"),\n        (\"windows\", \"aarch64\") => Ok(\"aarch64-pc-windows-msvc-install_only.tar.gz\"),\n        (\"windows\", \"x86_64\") => Ok(\"x86_64-pc-windows-msvc-install_only.tar.gz\"),\n        _ => Err(anyhow!(\n            \"no managed standalone Python distribution for host {os}/{arch}\"\n        )),\n    }\n}\n\nfn asset_matches_target(asset_name: &str, target_suffix: &str) -> bool {\n    asset_name.ends_with(target_suffix)\n        || asset_name.ends_with(\n            &target_suffix.replace(\"-install_only.tar.gz\", \"-install_only_stripped.tar.gz\"),\n        )\n}\n\npub async fn download_distribution(\n    client: &Client,\n    dist: &PythonDistribution,\n    target_path: &Path,\n) -> Result<()> {\n    tracing::info!(","sourceCodeStart":162,"sourceCodeEnd":198,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/runtime/python/downloader.rs#L162-L198","documentation":"Thrown by host_asset_suffix() in the managed-Python downloader when the running (OS, CPU arch) pair has no matching python-build-standalone asset in its lookup table. The table only covers macos/aarch64, macos/x86_64, linux/aarch64 and linux/x86_64 (gnu); other hosts — Windows, freebsd, linux/musl targets like aarch64 or i686, riscv, etc. — are simply unsupported for the managed download path. This is a generic platform guard: the faulty input is the host triple itself, not user input.","triggerScenarios":"Thrown at src/openhuman/runtime/python/downloader.rs:180 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install Python via the system package manager or pyenv and point the runtime at it instead of the managed download.","Check whether upstream python-build-standalone publishes an asset for this triple and add the mapping to host_asset_suffix().","Skip managed-runtime provisioning gracefully on unsupported platforms and surface a clear setup message."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}