On 04/18/2014 12:08 PM, EFTL wrote:
Thanks, Tiago. I do have gtk3 installed. What I did was install XQuartz instead, and it helped fix this particular issue-- allowing me to run that line (from graph_tool.all import *) without error.
However, this error appeared
gi._glib.GError: Couldn't recognize the image file format for file '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/graph_tool/draw/graph-tool-logo.svg' Exception AttributeError: "'GraphWindow' object has no attribute 'graph'" in <bound method GraphWindow.__del__ of <GraphWindow object at 0x13348b690 (graph_tool+draw+gtk_draw+GraphWindow at 0x7fb15c82a320)>> ignored
when I ran this:
from graph_tool.all import *
g1 = Graph() v1 = g1.add_vertex() v2 = g1.add_vertex() e = g1.add_edge(v1,v2)
graph_draw(g1, /vertex_text/ = g1.vertex_index, /vertex_font_size/ = 18)
I couldn't find any other solutions online.
For some reason the macports port for Gtk does not include the default SVG libraries. You have to install it: port install librsvg Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>