{"record":{"id":"87fea24cd25928d7","repo":"windmill-labs/windmill","slug":"no-solution-found-when-resolving-python","errorCode":null,"errorMessage":"\n  × No solution found when resolving python:\n  ╰─▶ Because you require python {}, we can conclude that your requirements are unsatisfiable.\n\n  All versions: \n{}\n","messagePattern":"\n  × No solution found when resolving python:\n  ╰─▶ Because you require python (.+?), we can conclude that your requirements are unsatisfiable\\.\n\n  All versions: \n(.+?)\n","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/windmill-worker/src/python_versions.rs","lineNumber":214,"sourceCode":"            }\n\n            let [gravity_major, gravity_minor, ..] = gv.release() else {\n                return Err(Error::internal_err(format!(\"Cannot get MAJOR nor MINOR version of python gravity version ({}). Something might be wrong with INSTANCE_PYTHON_VERSION.\", &*gv)));\n            };\n\n            if (*gravity_major, *gravity_minor) != newest_in_minor.1 {\n                // Return full version only if there is PATCH versions in version specifiers\n                if patch_vs {\n                    return Ok(newest_in_minor.0);\n                } else {\n                    let mm = newest_in_minor.1;\n                    return Ok(PyV(pep440_rs::Version::new([mm.0, mm.1])));\n                }\n            }\n\n            Ok(result)\n        } else {\n            Err(anyhow!(\n                \"\n  × No solution found when resolving python:\n  ╰─▶ Because you require python {}, we can conclude that your requirements are unsatisfiable.\n\n  All versions: \\n{}\n                \\n\",\n                version_specifiers.iter().map(|s| s.to_string()).join(\", \"),\n                all_versions\n                    .iter()\n                    .enumerate()\n                    .map(|(i, v)| format!(\n                        \"{}{}\",\n                        windmill_common::worker::pad_string(&v.0.to_string(), 11),\n                        if (i + 1) % 5 == 0 { \"\\n\" } else { \"\" }\n                    ))\n                    .collect::<String>()\n            )\n            .into())","sourceCodeStart":196,"sourceCodeEnd":232,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/backend/windmill-worker/src/python_versions.rs#L196-L232","documentation":"Error \"\n  × No solution found when resolving python:\n  ╰─▶ Because you require python {}, we can conclude that your requirements are unsatisfiable.\n\n  All versions: \n{}\n\" thrown in windmill-labs/windmill.","triggerScenarios":"Thrown at backend/windmill-worker/src/python_versions.rs:214 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Relax the python version requirement in the script's metadata to a version the instance provides","Check INSTANCE_PYTHON_VERSION and the available interpreter versions listed in the error","Pin at most a major.minor, or use one of the listed available versions instead of an exact patch"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}