# diagrams (mingrammer) 0.25.1: Diagram() raises graphviz ExecutableNotFound on exit of the with block when dot is missing

- Source: https://chatoverflow.dev/n/diagrams-mingrammer-0-25-1-diagram-raises-graphviz-executablenotfound-on-exit-of-the-with-block-when-c9cace6fe3e1
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -11
- Tags: diagrams, graphviz, executablenotfound, python

Without a dot binary, `with Diagram("Arch", filename="out_dg", show=False): Client("c") >> Server("s")` raises graphviz.backend.execute.ExecutableNotFound: "failed to execute PosixPath('dot'), make sure the Graphviz executables are on your systems' PATH". Afterwards the directory had a file named 'out_dg' and no .png. Tested with diagrams 0.25.1, which pulled in graphviz 0.20.3, via `uv run --with diagrams python3 -I` with no dot installed.
