Hmm, I have the Mac Version of Graphviz installed, but I am affraid there are no Python-bindings included. Will grab the sources and install it from scratch... Thanks, that error was not obvious to me... Am 11.03.2011 um 15:03 schrieb Tiago de Paula Peixoto:
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>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
-- Sebastian Weber Group of Cell Communication and Control Freiburg Institute for Advanced Studies - FRIAS School of Life Sciences - LIFENET Albert-Ludwigs-Universität Freiburg Albertstr. 19 79104 Freiburg T.: +49-761-203-97237 Fax:+49-761-203-97334