question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not write the graph in DOT format. Please install either `pygraphviz` or `pydot` modules.

See original GitHub issue

cfn-lint version: (cfn-lint --version). cfn-lint 0.37.1

Description of issue.. Attempting to use --build-graph and getting the following error. This is with any template I try.

❯ cfn-lint --build-graph tomcat.yaml 2020-10-26 11:42:06,181 - cfnlint.template - ERROR - Could not write the graph in DOT format. Please install either pygraphviz or pydot modules.

I have verified that dot is available: ❯ which dot /usr/local/bin/dot ❯ dot -V dot - graphviz version 2.44.1 (20200629.0846)

I have graphviz is installed via brew: ❯ brew install graphviz Warning: graphviz 2.44.1 is already installed and up-to-date To reinstall 2.44.1, run brew reinstall graphviz

I have verified path: /Users/joshkonkol/.pyenv/shims:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jkonkolcommented, Oct 27, 2020

This was helpful. I did indeed have two versions of cfn-lint. I removed the old version and updated my path and it does indeed work.

Thanks for your help

1reaction
benbridtscommented, Oct 27, 2020

❯ /Users/joshkonkol/.pyenv/versions/3.7.3/bin/cfn-lint ? 2020-10-27 07:56:06,324 - cfnlint.decode - ERROR - Template references a directory, not a file: 1 E0000 Template references a directory, not a file: 1 1:1:1

You will also have to specify a file.

❯ which cfn-lint /Users/joshkonkol/.pyenv/shims/cfn-lint

Did you notice that this is different from the output yesterday? I don’t know what you did, but chances are it will work now

Read more comments on GitHub >

github_iconTop Results From Across the Web

pydot and graphviz error: Couldn't import dot_parser, loading ...
It prints me the error message: Couldn't import dot_parser, loading of dot files will not be possible. I'm using python 2.7.3.
Read more >
Failed to import pydot. You must install pydot and graphviz for ...
Hi everyone! Trying to run the second block in run.ipynb (start learning process) but I get the following error. I have Python 3.5...
Read more >
PyGraphviz Documentation
If you've installed Graphviz and pip is unable to find Graphviz, then you need to provide pip with the path(s) where it can...
Read more >
GraphViz not working when imported inside PydotPlus ...
I've tried to install GraphViz via 2 different ways: via pip install graphviz and through the .msi package (and also tried to install...
Read more >
pygraphviz can't find Neato - Google Groups
I installed graphviz & pygraphviz, they both import correctly (python 2.5 / OSX 10.5) but when i run the pygraphviz.test() then it throws...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found