Closed JK87iab closed 3 years ago
Thanks @JK87iab. This appears to be a dependency issue with pygraphviz
though. Did you see any error when you installed pygraphviz
? Might also be worth trying:
pip install "causalnex[plot]"
No error while executing pip install pygraphviz
Using pip install "causalnex[plot]" results in the same error
I tried to dig the pygraphviz
codes here, particularly the _which
function:
def _which(self, name):
"""Searches for name in exec path and returns full path"""
import glob
import platform
if platform.system() == "Windows":
name += ".exe"
paths = os.environ["PATH"]
for path in paths.split(os.pathsep):
match = glob.glob(os.path.join(path, name))
if match:
return match[0]
raise ValueError(f"No prog {name} in path.")
It seems that the neato
program cannot be found in the system path. I then looked at the installation guide and, for Mac, the recommendation is to install graphviz
via homebrew first, followed by a pip install
. So can you perhaps try this:
brew install graphviz
pip install pygraphviz
and see if it works?
Closing this for now. Do let us know if the problem still persists. Thank you.
Description
Trying out the first tutorial but getting the error No prog neato in path.
Your Environment
Anaconda mac used brew install pygraphviz python 3.8 causelnex 0.10.0