Hi,

Is the seg fault gtk related ? (Maybe you could post the error message).

I experienced such a seg fault, due to conflicting backends in matplotlib and graph_tool. A work around is to import matplotlib before graph_tool:

    import matplotlib.pyplot as plt
    import graph_tool.all as gt

If I remove the first line, I get a seg fault with the following trace:

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: specified class size for type `PyGtkGenericCellRenderer' is smaller than the parent type's `GtkCellRenderer' class size
  from gtk import _gtk
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL' failed
  from gtk import _gtk
Erreur de segmentation (core dumped)


Hope this helps,

Cheers

Guillaume

Le 07/11/2012 16:46, Padraig a écrit :
Hi,
I just compiled graph-tool 2.2.17 from source under Ubuntu 12.10. When I
enter the command 'import graph_tool' in the python interpreter everything
appears to be working fine.

Whoever when I create a python script (say test.py) containing the command
'import graph_tool' and attempt to run this script from the terminal (using
the command python test.py) I get the error 'Segmentation fault (core
dumped)'.

I would really appreciate any help with this problem
Regards,
Padraig





--
View this message in context: 
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Segmentation-fault-core-dumped-tp4024822.html
Sent from the Main discussion list for the graph-tool project mailing list 
archive at Nabble.com.
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to