I’ve just installed libsvg and libsvg-cairo but neither one removes the error. Cheers, Charlie
On 18 Nov 2014, at 15:16, charlie <charliejharrison@gmail.com> wrote:
Thanks.
I have installed gtk+3 and pygobject , and have definite progress. Import graph_tool now launches an X11 session, so that's promising. But the command that should produce an interactive plot now gives a different error. Traceback below.
Thank you very much for your ongoing help Tiago, you are a forum hero!
Best,
Charlie
gt.graph_draw(g, inline=False)
--------------------------------------------------------------------------- Error Traceback (most recent call last) <ipython-input-21-bd72d1c9116d> in <module>() ----> 1 gt.graph_draw(g, inline=False)
/usr/local/lib/python2.7/site-packages/graph_tool/draw/cairo_draw.pyc in graph_draw(g, pos, vprops, eprops, vorder, eorder, nodesfirst, output_size, fit_view, inline, output, fmt, **kwargs) 876 kwargs.get("ecmap", default_cm)) 877 return interactive_window(g, pos, vprops, eprops, vorder, eorder, --> 878 nodesfirst, **kwargs) 879 else: 880 if isinstance(output, str):
/usr/local/lib/python2.7/site-packages/graph_tool/draw/gtk_draw.pyc in interactive_window(g, pos, vprops, eprops, vorder, eorder, nodesfirst, geometry, update_layout, async, **kwargs) 954 pos = sfdp_layout(g) 955 win = GraphWindow(g, pos, geometry, vprops, eprops, vorder, eorder, --> 956 nodesfirst, update_layout, **kwargs) 957 win.show_all() 958 if async:
/usr/local/lib/python2.7/site-packages/graph_tool/draw/gtk_draw.pyc in __init__(self, g, pos, geometry, vprops, eprops, vorder, eorder, nodesfirst, update_layout, **kwargs) 884 Gtk.Window.__init__(self, title="graph-tool's interactive window™") 885 icon = GdkPixbuf.Pixbuf.new_from_file('%s/graph-tool-logo.svg' % --> 886 os.path.dirname(__file__)) 887 self.set_icon(icon) 888 self.set_default_size(geometry[0], geometry[1])
Error: gdk-pixbuf-error-quark: Couldn't recognise the image file format for file '/usr/local/lib/python2.7/site-packages/graph_tool/draw/graph-tool-logo.svg' (3)
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com. _______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool