steffen | 7 Aug 2012 11:33
Picon
Picon

Problems with graph drawing

Hi again,

I finally managed to compile the new version of graph-tool with the newest
boost version. However, I had some issues installing all the required
libraries (CGAL, cariomm, pycairo) correctly and quite a number warnings
appeared during the compilation of graph-tool... (So, most probably it is my
fault, that things are not working perfectly.)

My problem concerns the new drawing functionality with cairo. When I call
graph_draw(), the following error appears

Exception AttributeError: "'GraphWindow' object has no attribute 'graph'" in
<bound method GraphWindow.__del__ of &lt;GraphWindow object at 0xa5e125c
(graph_tool+draw+gtk_draw+GraphWindow at 0xab1a8c8)>> ignored
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/home/karalus/lib/python2.7/site-packages/graph_tool/draw/cairo_draw.py",
line 623, in graph_draw
    nodesfirst, **kwargs)
  File
"/home/karalus/lib/python2.7/site-packages/graph_tool/draw/gtk_draw.py",
line 950, in interactive_window
    nodesfirst, update_layout, **kwargs)
  File
"/home/karalus/lib/python2.7/site-packages/graph_tool/draw/gtk_draw.py",
line 885, in __init__
    nodesfirst, update_layout, **kwargs)
  File
"/home/karalus/lib/python2.7/site-packages/graph_tool/draw/gtk_draw.py",
(Continue reading)

Tiago de Paula Peixoto | 7 Aug 2012 11:48
Picon
Gravatar

Re: Problems with graph drawing

On 08/07/2012 11:33 AM, steffen wrote:
> Hi again,
> 
> I finally managed to compile the new version of graph-tool with the newest
> boost version. However, I had some issues installing all the required
> libraries (CGAL, cariomm, pycairo) correctly and quite a number warnings
> appeared during the compilation of graph-tool... (So, most probably it is my
> fault, that things are not working perfectly.)
> 
> My problem concerns the new drawing functionality with cairo. When I call
> graph_draw(), the following error appears
> 
> Exception AttributeError: "'GraphWindow' object has no attribute 'graph'" in
> <bound method GraphWindow.__del__ of &lt;GraphWindow object at 0xa5e125c
> (graph_tool+draw+gtk_draw+GraphWindow at 0xab1a8c8)>> ignored
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/home/karalus/lib/python2.7/site-packages/graph_tool/draw/cairo_draw.py",
> line 623, in graph_draw
>     nodesfirst, **kwargs)
>   File
> "/home/karalus/lib/python2.7/site-packages/graph_tool/draw/gtk_draw.py",
> line 950, in interactive_window
>     nodesfirst, update_layout, **kwargs)
>   File
> "/home/karalus/lib/python2.7/site-packages/graph_tool/draw/gtk_draw.py",
> line 885, in __init__
>     nodesfirst, update_layout, **kwargs)
>   File
(Continue reading)

steffen | 7 Aug 2012 15:44
Picon
Picon

Re: Problems with graph drawing

Hi Tiago,

thanks a lot for the advice. I am indeed missing GTK+ 3 but this getting
complicated now, I should maybe talk to my admin instead of wasting more
time on installing all the libraries myself...

And yes, drawing with graphviz works fine, thanks. But actually the main
reason for switching to the new version of graph-tool were the fancy new
visualisation options you showed my in Dresden.

Cheers,
Steffen

--
View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Problems-with-graph-drawing-tp4024765p4024767.html
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.

Gmane