Skip to content

uv run --no-project fails due to missing pyproject.toml sections #6550

@meastham

Description

@meastham

Similar issue to #6177

If I run uv run --no-project ... in a directory with a pyproject.toml with a missing project table, I get an error:

❯ uv -V
uv 0.3.2 (c5440001c 2024-08-23)
❯ cd $(mktemp -d)
❯ touch pyproject.toml
❯ uv run --no-project python
error: No `project` table found in: `/private/var/folders/1s/0jgtfqgd1wqc327r1kxgrh3w0000gn/T/tmp.mAGDf4eLya/pyproject.toml`

Same result with --no-config

(this is on MacOS / apple silicon)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions