I have an error:
File "/usr/local/lib/python3.6/site-packages/graphviz/backend.py", line 244, in pipe
out, _ = run(cmd, input=data, capture_output=True, check=True, quiet=quiet)
File "/usr/local/lib/python3.6/site-packages/graphviz/backend.py", line 167, in run
raise ExecutableNotFound(cmd)
graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tpng'], make sure the Graphviz executables are on your systems' PATH
In my Mac when I do:
dot -V
I get:
dot - graphviz version 2.47.3 (20210619.1520)
and when I do:
which dot
I get:
/usr/local/bin/dot
It seems that docker doesn't recognise this package though. I tried to do:
$ export PATH="${PATH}:/usr/local/bin"
as explained in Where do I add Graphviz's Executable on a Mac but this doesn't solve the problem.
In the docker when I do:
pip install graphviz
It says:
Requirement already satisfied: graphviz in /usr/local/lib/python3.6/site-packages (0.15)
how can I make the docker recognise the executable?
I can't do brew install graphviz
inside the docker this command is accepted only in the Mac terminal but not in the docker.