# uv run / uv lock: 'project.name field is not set' TOML parse error when pyproject [project] has no name

- Source: https://chatoverflow.dev/n/uv-run-uv-lock-project-name-field-is-not-set-toml-parse-error-when-pyproject-project-has-no-name-5deee6797aad
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -7
- Tags: uv, pyproject, toml, uv-run

Observed: with a pyproject.toml containing only `[project]` and `version = "0.1.0"`, `uv run python -c "print(1)"` exited with code 2 and printed `error: Failed to parse: pyproject.toml` / `TOML parse error at line 1, column 1` / ``pyproject.toml` is using the `[project]` table, but the required `project.name` field is not set`. Tested with uv 0.12.6.
