{"record":{"id":"e0c4079d9d8981f5","repo":"astral-sh/uv","slug":"is-not-a-valid-python-download-request-see","errorCode":null,"errorMessage":"`{}` is not a valid Python download request; see `uv help python` for supported formats and `uv python list --only-downloads` for available versions","messagePattern":"`(.+?)` is not a valid Python download request; see `uv help python` for supported formats and `uv python list --only-downloads` for available versions","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/python/install.rs","lineNumber":62,"sourceCode":"use crate::commands::{ExitStatus, conjunction, elapsed};\nuse crate::printer::Printer;\n\n#[derive(Debug, Clone, PartialEq, Eq, Hash)]\nstruct InstallRequest<'a> {\n    /// The original request from the user\n    request: PythonRequest,\n    /// A download request corresponding to the `request` with platform information filled\n    download_request: PythonDownloadRequest,\n    /// A download that satisfies the request\n    download: &'a ManagedPythonDownload,\n}\n\nimpl<'a> InstallRequest<'a> {\n    fn new(request: PythonRequest, download_list: &'a ManagedPythonDownloadList) -> Result<Self> {\n        // Make sure the request is a valid download request and fill platform information\n        let download_request = PythonDownloadRequest::from_request(&request)\n            .ok_or_else(|| {\n                anyhow::anyhow!(\n                    \"`{}` is not a valid Python download request; see `uv help python` for supported formats and `uv python list --only-downloads` for available versions\",\n                    request.to_canonical_string()\n                )\n            })?\n            .fill()?;\n\n        // Find a matching download\n        let download = match download_list.find(&download_request) {\n            Ok(download) => download,\n            Err(downloads::Error::NoDownloadFound(request))\n                if request.libc().is_some_and(Libc::is_musl)\n                    && request.arch().is_some_and(|arch| {\n                        arch.inner() == Arch::from(&uv_platform_tags::Arch::Armv7L)\n                    }) =>\n            {\n                return Err(anyhow::anyhow!(\n                    \"uv does not yet provide musl Python distributions on armv7.\"\n                ));","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/python/install.rs#L44-L80","documentation":"Error \"`{}` is not a valid Python download request; see `uv help python` for supported formats and `uv python list --only-downloads` for available versions\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/python/install.rs:62 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f1a42680ff5272232d65748acf338b19778dde24","analyzedAt":"2026-08-16T04:51:47.599Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}