python - How to enable path on user environment in eclipse-PyDev -


if ideas how enable pydev(eclipse) enables path or symbolic link call foreign program(programs in /usr/local/bin/) in macos(/linux), please tell me.


i want use graphviz via pygraphviz on pydev in eclipse. however, error message occurred such "valueerror: program dot not found in path." or "valueerror: no prog dot in path."

i guessed below similar problems of cause may ide(e.g. pydev) not enable paths call foreign command, example, /usr/local/bin/dot.

the reason perform graphviz on eclipse in below environment expected.

  • sample code want 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, upper sample code perform expected. off course, python same used in eclipe.
    • the same eclipse run in upper terminal.app command "open ~/application/eclipse.app" can performed upper sample code expected. off course, in terminal.app upper code can performed.
  • my environment.

    • macbookpro macos(10.10:yosemite)
    • eclipse luna (installed via homebrew-cask)
    • pydev 4.0
    • python 3.4 (installed conda)
    • pygraphviz 1.3rc2 (built source codes gotten github)
    • graphviz 2.38.0 (installed via homebrew)
  • similar question

when run program terminal can find graphviz tool because location included in path environment variable. environment variable defined in ~/.bash_profile, executed if log in @ terminal. eclipse doesn't use file , therefore doesn't know location of graphviz.

so problems boils down "how set environment variable os-x". if phrase this, google return lot more results since many people have encountered same issue. unfortunately solution depends on version of os-x cannot give short answer here. besides, other people have written far better answers can. think this one may starting point.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -