Skip to main content
When bakefile.py fails to import because a dependency is missing, bake runs uv sync automatically and retries. If loading still fails:
Fixes, in order:
  1. Run uv cache clean and retry.
  2. For a PEP 723 bakefile, check that every import is declared in the inline # dependencies block.
  3. For a pyproject.toml project, run uv sync --all-extras --all-groups.
  4. A traceback here usually means a real bug in bakefile.py. Check it compiles:
Last modified on August 25, 2026