MSR
MSR

Reputation: 77

Vertex AI - ExecutableNotFound: failed to execute PosixPath('dot'), make sure the Graphviz executables are on your systems' PATH

I am getting the error ExecutableNotFound: failed to execute PosixPath('dot'), make sure the Graphviz executables are on your systems' PATH when I try to run the code

import os
import graphviz

# Explicitly add Graphviz binary location
os.environ["PATH"] += os.pathsep + "/usr/local/bin"

# Now try rendering
dot = graphviz.Digraph()
dot.node('A', 'Start')
dot.node('B', 'End')
dot.edge('A', 'B')

dot.render("output", format="png")  # This should work now

please help me to overcome the error. I have installed/reinstalled graphviz several times

Upvotes: 0

Views: 33

Answers (1)

Reynaldo Aceves
Reynaldo Aceves

Reputation: 749

Please make sure to install the graphviz OS package as

sudo yum install graphviz

Upvotes: 0

Related Questions