On 01.06.2015 15:36, JanNimczik wrote:
Hi,
I'm using graph-tool to estimate stochastic block models. This worked fine until a month ago when I updated my ports via macports. Now I get two problems when I want to run my python script.
1) When I import the graph-tool package I get the following warning:
Warning (from warnings module): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/graph_tool/draw/cairo_draw.py", line 1318 warnings.warn(msg, RuntimeWarning) RuntimeWarning: Error importing Gtk module: cannot import name Gtk; GTK+ drawing will not work.
This is harmless if you do not intend to do any visualization. If you want this to go away, all you have to do is install gtk+3 via macports.
2) The program continues after the warning but crashes when I run the following command:
state_w = gt.minimize_blockmodel_dl(g, eweight=g.edge_properties["weight"], multigraph = True)
This looks like a bug. Can you please also change the network which you are using, so I can debug it? Thanks! Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>