Thanks Tiago. Using the Macports install was the very first thing I tried, I’m rather committed to Homebrew through other packages. The two of them don’t play nicely together, and I ended up breaking a lot of other things. I might look into trying to get them to cooperate if I can’t get a fix for GTK. Cheers, Charlie
On 18 Nov 2014, at 18:42, Tiago de Paula Peixoto <tiago@skewed.de> wrote:
On 18.11.2014 19:12, charlie wrote:
Hi again Tiago!
I tried editing the Homebrew formula for librsvg to obtain the latest version and enable introspection, and sure enough I can now produce an interactive graph! Hooray! I've posted the issue on the Homebrew github page that you referred.
BUT: now I have a different problem. In my beautiful interactive graphs, the second node I select infallibly triggers a fatal error that kills the kernel. Here it is:
/usr/local/lib/python2.7/site-packages/graph_tool/draw/gtk_draw.py:493: Warning: g_object_ref: assertion 'G_IS_OBJECT (object)' failed icon = self.render_icon(Gtk.STOCK_EXECUTE, Gtk.IconSize.BUTTON) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python2.7/site-packages/graph_tool/draw/gtk_draw.pyc in draw(self, da, cr) 492 if self.surface_callback is not None: 493 icon = self.render_icon(Gtk.STOCK_EXECUTE, Gtk.IconSize.BUTTON) --> 494 Gdk.cairo_set_source_pixbuf(cr, icon, 10, 10) 495 cr.paint() 496
TypeError: Argument 1 does not allow None as a value
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python2.7/site-packages/graph_tool/draw/gtk_draw.pyc in draw(self, da, cr) 492 if self.surface_callback is not None: 493 icon = self.render_icon(Gtk.STOCK_EXECUTE, Gtk.IconSize.BUTTON) --> 494 Gdk.cairo_set_source_pixbuf(cr, icon, 10, 10) 495 cr.paint() 496
TypeError: Argument 1 does not allow None as a value
Any ideas? Thanks!
Well, this is obviously a Gtk bug, since it is failing to render a stock icon. You should also report this to the homebrew people.
(Alternatively, you may try Macports, where it is reported to work)
Best, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de <mailto:tiago@skewed.de>>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de <mailto:graph-tool@skewed.de> http://lists.skewed.de/mailman/listinfo/graph-tool <http://lists.skewed.de/mailman/listinfo/graph-tool>