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.

Added Graphviz too Path but pydot cannot find dot excuable correctly

See original GitHub issue

I use anaconda python on windows 10 platform, install pydot by

pip install pydot then install Graphviz by install package download from https://www.graphviz.org/download/. and then add the install location to Path: E:\Program Files (x86)\Graphviz2.38\bin but pydot cannot find dot excuable correctly because of the code in pydot below as I think:

def get_executable_extension():
    # type: () -> str
    if is_windows():
        return '.bat' if is_anacoda() else '.exe'
    else:
        return ''

There are not excuable file name dot.bat, only dot.exe in my path. Even I use anaconda, but I am not install graphviz by conda. And the error info is confusing: FileNotFoundError: [WinError 2] "dot" not found in path. Pydot just can not find dot.bat but not dot.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

16reactions
QingGocommented, Jan 28, 2019

Finally, I use

conda install -c anaconda graphviz

to install graphviz and then everything going well.

1reaction
prmtlcommented, Jan 28, 2019

Yes, pydot installed via conda it supports graphviz installed by conda only.

I agree that the error message should take different installation methods into account and be improved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is pydot unable to find GraphViz's executables in ...
The problem is that the path to GraphViz was not found by the pydot module as shown in the traceback: 'GraphViz\'s executables not...
Read more >
GraphViz not working when imported inside PydotPlus ...
It's best if the Package sets the PATH correctly and removes it when you uninstall the Package (so you don't get too long...
Read more >
Installing in Windows - advice please - Help - Graphviz
I would like to install Graphviz for use with R. I have Windows 10. I couldn't find any instructions on how to do...
Read more >
Install — PyGraphviz 1.10 documentation
sudo apt-get install graphviz graphviz-dev $ pip install pygraphviz ... you need to provide pip with the path(s) where it can find Graphviz....
Read more >
Why Is Pydot Unable To Find Graphviz'S ... - ADocLib
After you have installed Graphviz, make sure the dot executable is run ... Python is installed and added to the path, but I...
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