Error in drawing graphs

Hi,

I am trying the example code for drawing the graphs on my machine. Here is
the error I am getting. I am sure this is something to do with the installed
packages. I am using Debian and am not sure what package or path is missing.

attachment.html (708 Bytes)

you need the python bindings for graphviz

Karthik Channakeshava wrote:

I am trying the example code for drawing the graphs on my machine. Here is
the error I am getting. I am sure this is something to do with the installed
packages. I am using Debian and am not sure what package or path is missing.

******

Traceback (most recent call last):
  File "gt_draw_graph.py", line 23, in <module>
    penwidth=ebet, overlap="prism", output="graph-draw.png")
  File "/usr/local/lib/python2.5/site-packages/graph_tool/draw/__init__.py",
line 264, in graph_draw
    gvg = gv.graph("G")
NameError: global name 'gv' is not defined

******

You need the libgv-python package. I should have made this a
dependency...

Unfortunately there is a currently a bug in the Debian package for
libgv-python. They put part of the python binding in the wrong place. In
order to fix this, you have to run the following command as root:

    ln -sf /usr/lib/pyshared/python2.5/libgv_python25.so /usr/lib/pymodules/python2.5/_gv.so

Cheers,
Tiago