In G.layout() the Graphviz command line tools are run using
the Python subprocess module.
So it could be a symptom of a problem with your Graphviz installation.
Can you run "dot" or other Graphviz tools? You can try with
a simple dot file (adjust for Windows syntax):
$ echo "graph {}" |dot
graph {
node [label="\N"];
graph [bb="0,0,0,0"];
}
> One more question--I have another python installation part of python
> (x,y) can I install and run pygraphviz from there instead from cygwin?
Should be able to. You need a working version of Graphviz and
a C compiler (as far as I know the same compiler version should
be used to build both Graphviz and Python).
Aric
OK - good. This might be a little tricky to debug but
here are some things to try that might give a clue.
>>> import pygraphivz as pgv
>>> pygraphviz.test() # probably will segfault
>>> A=pgv.AGraph()
>>> A.write() # write emtpy graph to stdout
>>> A.to_string() # write string version of empty graph
>>> A._run_prog() # run the graphviz 'nop' program using subprocess module
>>> A._run_prog('neato')# run 'neato' on graph
Aric
It might be you have some conflicting installations.
I'm not sure how cygwin works but in more recent Linux distributions
graphviz packages use pkg-config instead of dotneato-config (and the
setup.py file handles that). Also the Linux graphviz-dev package has
been renamed libgraphviz-dev.
Aric