On 03/11/2011 02:52 PM, Sebastian Weber wrote:
I am using the latest graph-tool 2.2.11, and this happens to stop working:
Traceback (most recent call last): File "../python/mfptTest.py", line 40, in <module> graph_draw(G, layout="sfdp", output=graphName + ".pdf", eprops = {'arrowsize': 1.0, 'penwidth': Ecap }) File "/Volumes/Data/sebi/.local/lib/python2.6/site-packages/graph_tool/draw/__init__.py", line 274, in graph_draw gvg = gv.graph("G") NameError: global name 'gv' is not defined
Inspecting the respective file reveals that gv is indeed not defined...
Typo?
In the module gv are the python bindings for GraphViz. This means they are somehow not available in your system. Do you have GraphViz installed with the python bindings enabled? Are they reachable from your python path? Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>