{"record":{"id":"4ad862ad99eee81f","repo":"astral-sh/uv","slug":"the-given-python-version-resolved-is-incom","errorCode":null,"errorMessage":"The {given} Python version `{}`{resolved} is incompatible with the {} `requires-python` value of `{}`.","messagePattern":"The (.+?) Python version `(.+?)`(.+?) is incompatible with the (.+?) `requires-python` value of `(.+?)`\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/python/pin.rs","lineNumber":367,"sourceCode":"        }\n    };\n\n    let Some(requires_python) = requires_python else {\n        return Ok(());\n    };\n\n    if requires_python.contains(pin.version) {\n        return Ok(());\n    }\n\n    let given = if pin.existing { \"pinned\" } else { \"requested\" };\n    let resolved = if pin.resolved {\n        format!(\" resolves to `{}` which \", pin.version)\n    } else {\n        String::new()\n    };\n\n    Err(anyhow::anyhow!(\n        \"The {given} Python version `{}`{resolved} is incompatible with the {} `requires-python` value of `{}`.\",\n        pin.request.to_canonical_string(),\n        project_type,\n        requires_python\n    ))\n}\n","sourceCodeStart":349,"sourceCodeEnd":374,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/python/pin.rs#L349-L374","documentation":"Error \"The {given} Python version `{}`{resolved} is incompatible with the {} `requires-python` value of `{}`.\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/python/pin.rs:367 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"}