mirror of
https://github.com/patrickchugh/terravision.git
synced 2026-05-09 08:25:25 +02:00
[GH-ISSUE #157] graphviz.backend.execute.CalledProcessError: Command '[PosixPath('dot'), '-Kneato', '-Tsvg', '-n2', '-O', 'architecture-gcp.dot']' returned non-zero exit status 1. [stderr: b'There is no layout engine support for "neato"\n Use one of: d… #88
Labels
No labels
bug
enhancement
enhancement
good first issue
good first issue
good first issue
pipeline
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/terravision#88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anlexN on GitHub (Jan 5, 2026).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/157
Output errors:
This don't work:
This
terravisioncan not use'neato'layout engine. architecture diagram is also not rendered correctly.This don't work too:
In the
~\.pyenv\versions\3.12.10\lib\python3.12\site-packages\graphviz\backend\rendering.py:I also change
to
@patrickchugh commented on GitHub (Jan 5, 2026):
Hi thanks for this can you also try without the format parameters just to create a . PNG? Does that work ?
@patrickchugh commented on GitHub (Jan 5, 2026):
Hello, I just tested out terravision on a fresh Ubuntu VM and I am unable to reproduce your error. Since this is the first time I am hearing abut this particular issue, I am assuming it is something to do with your Python environment or local graphviz installation.
Please delete and re-install graphviz from official sources, then try to use a virtual environment to run it again.
You can also try to use pipx to install it with the commnad pipx install terravision - this will create a virtual environment to run terravision in an isolated space. You do not need to copy any files like you are doing:
cp hcl2/hcl2.lark /home/anlexn/.pyenv/versions/3.12.10/lib/python3.12/site-packages/hcl2/hcl2.lark
Also, when you are trying to open SVG files do not use Visual Studio but some other tool like Inkscape since VSCode doesn't have a good viewer for it and incorrectly renders the files.
Hope this helps.
@patrickchugh commented on GitHub (Jan 5, 2026):
@anlexN Let me know if this works so I can close this issue.
@anlexN commented on GitHub (Jan 6, 2026):
@patrickchugh Thank you for your reply, you are my friend!
PNG don't work too.
pip install terravisionalso install python'sgraphviz. how do you installgrahphviz?Can you generate architecture diagram?
@patrickchugh commented on GitHub (Jan 6, 2026):
Yes works for me and others, you are the only one to report this. You may have an older version or corrupted version of graphviz installed in some other folder
Graphviz python library is different from Graphviz dot executable. Graphviz in python just calls those binary executable files, so you need to download graphviz binaries from the official website first https://graphviz.org/download/
I would suggest you to manually uninstall any previous graphviz executable files like dot and neato by searching in your path, and any python package called graphviz. Then try again using
pipx install terravision
#pipx is different from pip
Hope this helps
@anlexN commented on GitHub (Jan 6, 2026):
@patrickchugh still can not work.
can I not use
neatolayout engine?Base on new output, I think neato is exist but is not used. so crazy.
I use Windows 11, architecture diagram is generated but not rendered correctly:
@patrickchugh commented on GitHub (Jan 6, 2026):
Sorry but GCP support has not been implemented. Have you tried Azure/AWS yet ? @anlexN Please wait until core support for GCP is ready. I will close the case for now.
@patrickchugh commented on GitHub (Jan 6, 2026):
I didn't know you were using Windows :)
@anlexN commented on GitHub (Jan 7, 2026):
@patrickchugh when is
GCPsupport ready ? I use Windows and Debian, all are failed.@patrickchugh commented on GitHub (Jan 18, 2026):
@anlexN FYI GCP core services are now supported. I have shown a test diagram in the README.md
@anlexN commented on GitHub (Jan 25, 2026):
@patrickchugh Thank you. How many GCP core services do
terravisionsupport now?@patrickchugh commented on GitHub (Jan 25, 2026):
Top 20-25 services. Try it out on your TF code and if anything doesn't look right or is not showing up let me know and I'll prioritise those service handlers. @anlexN
You can also now run in docker or via GitHub actions now so you don't have to worry about dependencies anymore. @anlexN