Pygraphviz error: neato program not found in path

I am running Windows 7 and using python version 2.7.

I try to use pygraphviz, but whenever I use G.layout () on a graph, I get an error:

Traceback (most recent call last):
  File "<pyshell#16>", line 1, in <module>
    G.layout()
  File "C:\Python27\lib\site-packages\pygraphviz\agraph.py", line 1305, in layout
    data=self._run_prog(prog,' '.join([args,"-T",fmt]))
  File "C:\Python27\lib\site-packages\pygraphviz\agraph.py", line 1251, in _run_prog
    runprog=r'"%s"'%self._get_prog(prog)
  File "C:\Python27\lib\site-packages\pygraphviz\agraph.py", line 1239, in _get_prog
    raise ValueError("Program %s not found in path."%prog)
ValueError: Program neato not found in path.

I know, however, that Graphviz files are installed and the directory is in my path (I manually left and added it).

I tried the simlink solution given here , but all I get when I enter it into the command line (administrator mode) is a message saying that it is not recognized as an internal or external command, operating program or batch file. I am not experienced enough to find out if there is something that I cannot do with it.

Is there something I can do to make this work?

+4

Source: https://habr.com/ru/post/1525627/


All Articles