graphviz - pygraphviz ValueError: Program dot not found in path (python) -


i having problem pygraphviz on win7(64). installed graphviz , pygraphviz. when try compile code

g=pgv.agraph() d={'1': {'2': none}, '2': {'1': none, '3': none}, '3': {'2': none}} a=pgv.agraph(d) g.add_node(1, color='red') g.add_edge('b','c',color='blue') g.layout(prog='dot')  g.draw('file.png') 

i error

pydev debugger: starting traceback (most recent call last):   file "d:\program files\eclipse\plugins\org.python.pydev_3.3.3.201401272249\pysrc\pydevd.py", line 1738, in <module>     debugger.run(setup['file'], none, none)   file "d:\program files\eclipse\plugins\org.python.pydev_3.3.3.201401272249\pysrc\pydevd.py", line 1355, in run     pydev_imports.execfile(file, globals, locals)  # execute script   file "d:\users\suuser\workspace\threadgraph\parsetext.py", line 17, in <module>     g.layout(prog='dot')    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 dot not found in path. 

dont tell me duplicate. looked answers.

pygraphviz valueerror: program dot not found in path

(python) valueerror: program dot not found in path

pygraphviz agraph.layout() throws i0 error

you may problem if have pygraphviz installed, if pygraphviz bin directory has not been added path. had problem on windows (after installing pygraphviz .msi).

to resolve, add bin directory (e.g. c:\program files (x86)\graphviz2.38\bin) path system variable, e.g. on win7:

system properties -> environment variables -> system varibales -> path -> edit...


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -