If any ideas how to enable PyDev(eclipse) enables path or symbolic link to call foreign program(programs in /usr/local/bin/) in MacOS(/Linux), please tell me.
I want to use graphviz via pygraphviz on PyDev in eclipse. However, error message occurred such as "ValueError: Program dot not found in path." or "ValueError: No prog dot in path."
I guessed the below similar problems of which the cause may be IDE(e.g. PyDev) not to enable paths to call foreign command, for example, /usr/local/bin/dot.
The reason is I could perform graphviz on eclipse in below environment just as expected.
Sample code I want to perform
import pygraphviz G=pygraphviz.AGraph() G.add_node('a') G.add_edge('b','c') G.layout() G.draw('sample01.png')
Successed cases
- In terminal.app, the upper sample code could be perform just as expected. Off course, the python was same used in my eclipe.
- The same eclipse which run in the upper terminal.app by command "open ~/Application/Eclipse.app" can be performed the upper sample code just as expected. Off course, in the terminal.app the upper code can be performed.
My environment.
- MacBookPro MacOS(10.10:yosemite)
- Eclipse Luna (Installed via homebrew-cask)
- PyDev 4.0
- Python 3.4 (installed by conda)
- PyGraphviz 1.3rc2 (built source codes gotten from GitHub)
- Graphviz 2.38.0 (Installed via homebrew)
Similar question