1

I am trying to get the fast-autocomplete library to work. I have a virtualenv with Python 3.6 installed for this. Everything else works but when I am trying to visualize the graph, I keep getting the following error:

    File "/Users/rishi/code/search-env/lib/python3.6/site-packages/pygraphviz/agraph.py", line 1569, in _which
        raise ValueError("No prog %s in path." % name)
    ValueError: No prog dot in path.

I have already installed the following:

  • pygraphviz and graphviz as suggested here and here.

  • pydot installed with dot at /usr/local/bin/dot

I am on OSx Mojave. What am I missing?

Community
  • 1
  • 1
rishi
  • 2,564
  • 6
  • 25
  • 47
  • What do you get when run `dot -V` in your terminal? – Dany Nov 19 '19 at 10:18
  • @Dany I get: dot - graphviz version 2.43.0 (0) – rishi Nov 19 '19 at 11:42
  • That's strange. And if you run `os.environ["PATH"]` in your python interpreter inside vitualenv, do you get that `/usr/local/bin` included there? – Dany Nov 19 '19 at 11:53
  • Yes. '/Users/rishi/code/search-env/bin:/opt/anaconda3/bin:/Users/rishi/miniconda3/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin' – rishi Nov 19 '19 at 11:59
  • Ok, and just to be sure, if you `from pygraphviz import AGraph` and then `AGraph._which(None, 'dot')`, do you still get an error? (all inside virtualenv, of course) – Dany Nov 19 '19 at 12:18
  • Weirdly no. But when I try and use the same virtualenv in my Eclipse and run it, I get the error. Do you think it is more of an Eclipse issue than dot one? – rishi Nov 19 '19 at 17:37

0 Answers0