{"record":{"id":"fc08d58bf16ba2e3","repo":"astral-sh/uv","slug":"executable-already-exists-at-but-could-not-be","errorCode":null,"errorMessage":"Executable already exists at `{}` but could not be removed: {err}","messagePattern":"Executable already exists at `(.+?)` but could not be removed: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/python/install.rs","lineNumber":1156,"sourceCode":"                                );\n                            } else {\n                                debug!(\n                                    \"Executable already exists for `{}` at `{}`. Use `--force` to replace it\",\n                                    existing.key(),\n                                    target.simplified_display()\n                                );\n                                continue;\n                            }\n                        }\n                    }\n                }\n\n                // Replace the existing link\n                if let Err(err) = fs_err::remove_file(&target) {\n                    errors.push((\n                        InstallErrorKind::Bin,\n                        installation.key().clone(),\n                        anyhow::anyhow!(\n                            \"Executable already exists at `{}` but could not be removed: {err}\",\n                            target.simplified_display()\n                        ),\n                    ));\n                    continue;\n                }\n\n                if let Some(existing) = existing {\n                    // Ensure we do not report installation of this executable for an existing\n                    // key if we undo it\n                    changelog\n                        .installed_executables\n                        .entry(existing.key().clone())\n                        .or_default()\n                        .remove(&target);\n                }\n\n                if let Err(err) =","sourceCodeStart":1138,"sourceCodeEnd":1174,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/python/install.rs#L1138-L1174","documentation":"Error \"Executable already exists at `{}` but could not be removed: {err}\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/python/install.rs:1156 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"}