{"record":{"id":"74e2bbc198700725","repo":"astral-sh/uv","slug":"invalid-installed-distribution-path","errorCode":null,"errorMessage":"Invalid installed distribution path: `{}`","messagePattern":"Invalid installed distribution path: `(.+?)`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/pip/operations.rs","lineNumber":909,"sourceCode":"/// Return the Python source files owned by the distributions installed by this operation.\nfn python_source_files_for_installs<'a>(\n    venv: &'a PythonEnvironment,\n    installs: &'a [CachedDist],\n) -> impl Iterator<Item = anyhow::Result<PathBuf>> + 'a {\n    let layout = venv.interpreter().layout();\n    let site_packages = [\n        CWD.join(&layout.scheme.purelib),\n        CWD.join(&layout.scheme.platlib),\n    ];\n    installs.iter().flat_map(move |install| {\n        let dist_info = match installed_dist_info_path(&layout, install.path()).with_context(|| {\n            format!(\"Failed to locate installed distribution for bytecode compilation: `{install}`\")\n        }) {\n            Ok(dist_info) => dist_info,\n            Err(err) => return Box::new(std::iter::once(Err(err))) as PythonSourceFileIterator,\n        };\n        let Some(record_root) = dist_info.parent().map(|path| CWD.join(path)) else {\n            return Box::new(std::iter::once(Err(anyhow!(\n                \"Invalid installed distribution path: `{}`\",\n                dist_info.user_display()\n            ))));\n        };\n        let record_path = dist_info.join(\"RECORD\");\n        let record_file = match fs_err::File::open(&record_path) {\n            Ok(record_file) => record_file,\n            // Another process may have removed the installed distribution.\n            Err(err) if err.kind() == std::io::ErrorKind::NotFound => {\n                return Box::new(std::iter::empty());\n            }\n            Err(err) => {\n                return Box::new(std::iter::once(Err(err).with_context(|| {\n                    format!(\"Failed to read `{}`\", record_path.user_display())\n                })));\n            }\n        };\n        let site_packages = site_packages.clone();","sourceCodeStart":891,"sourceCodeEnd":927,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/pip/operations.rs#L891-L927","documentation":"Error \"Invalid installed distribution path: `{}`\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/pip/operations.rs:909 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"}