Bakebook not found
bake looks for a variable named bakebook (the default). Fixes:
- The variable has a different name? Select it with
-b:
- Running from another directory? Change it with
-C, or pick another file with-f:
- Check the file actually defines and instantiates the bakebook:
Wrong bakebook type
bakebook variable must be a Bakebook instance (or a subclass like a bakelib Space). A typer.Typer() app or a plain dict does not work. Tasks use Typer syntax, but the bakebook itself is a Bakebook (see Bakebook).
Directory or file name errors
-f takes a file name only, never a path. Change directories with -C instead:
bakefile.py simply does not exist yet. Create one with bakefile init.
Import errors and dependency sync
Whenbakefile.py fails to import because a dependency is missing, bake runs uv sync automatically and retries. If loading still fails:
- Run
uv cache cleanand retry. - For a PEP 723 bakefile, check that every import is declared in the inline
# dependenciesblock. - For a
pyproject.tomlproject, runuv sync --all-extras --all-groups. - A traceback here usually means a real bug in
bakefile.py. Check it compiles:
Wrong Python
bake, bakefile env, and bakefile export reinvoke themselves under the bakefile’s Python. If a module is importable in your shell but not from a task, check which interpreter each command uses:
Commands print but never run
Dry-run mode (bake -n) prints commands instead of executing them. Remove -n to run for real. To force specific commands to execute even under dry-run, use override_dry_run (see Context).
Completion not working
Log output too noisy or too quiet
Tune levels per logger withBAKE_LOG, bump verbosity with -v, and switch to JSON logs with --no-log-pretty. See Logging.
Secrets print as **********
Masked by design.SecretStr values stay hidden in bakefile env and bakefile export until you pass -s / --secret. See Settings.