0

I have a problem with installing graphviz in PyCharm. Im using windows. I already installed graphviz library onto my PyCharm project, however error occurs when executing dot.render:

graphviz.backend.execute.ExecutableNotFound: failed to execute WindowsPath('dot')

I tried adding

import os
os.environ["PATH"] += os.pathsep + 'D:/Program Files (x86)/Graphviz2.38/bin/'

as said here: "RuntimeError: Make sure the Graphviz executables are on your system's path" after installing Graphviz 2.38

but it still doesent work?

any ideas?

Im new to pycharm and advanced coding in general, go easy please...

Progman
  • 16,827
  • 6
  • 33
  • 48
  • Do you actually *have* a `D:/Program Files (x86)/Graphviz2.38` folder on your computer? There are two entirely separate things named "graphviz" that you need to install: an application, and a Python module for talking to that application. – jasonharper Sep 08 '22 at 19:01
  • make sure using backslash. maybe that is issue I think. i.e. `r'D:\Program Files\...'` – rv.kvetch Sep 08 '22 at 19:09

1 Answers1

1

This is a very common problem. While it may have several causes (see suggestions above), the solution you found is out-of-date. Unfortunately, there are two software systems named Graphviz. You need both. Go here https://graphviz.gitlab.io/download/ and download the appropriate version. To check that you have installed the "real" Graphviz package, bring up a cmd window & type dot -V

sroush
  • 5,375
  • 2
  • 5
  • 11