astral-sh/uv · error
`pylock.toml` is not a supported input format for `uv pip co
Error message
`pylock.toml` is not a supported input format for `uv pip compile`
What it means
Error "`pylock.toml` is not a supported input format for `uv pip compile`" thrown in astral-sh/uv.
Source
Thrown at crates/uv/src/commands/pip/compile.rs:234
require_hashes: _,
find_links,
no_binary,
no_build,
} = RequirementsSpecification::from_sources(
requirements,
constraints,
overrides,
excludes,
Some(&groups),
&client_builder,
)
.await?;
override_dependencies.extend(overrides_from_workspace);
// Reject `pylock.toml` files, which are valid outputs but not inputs.
if pylock.is_some() {
return Err(anyhow!(
"`pylock.toml` is not a supported input format for `uv pip compile`"
));
}
let constraints = constraints
.iter()
.cloned()
.chain(
constraints_from_workspace
.into_iter()
.map(NameRequirementSpecification::from),
)
.collect();
let excludes: Vec<ExcludeDependency> = excludes
.into_iter()
.chain(excludes_from_workspace)
.collect();View on GitHub (pinned to f1a42680ff)
When it happens
Trigger: Thrown at crates/uv/src/commands/pip/compile.rs:234 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of astral-sh/uv@f1a42680ff (2026-08-16).
Data as JSON: /api/errors/46ba112e88d3cde5.
Report an issue: GitHub.