import of graph_tool hangs (Ubuntu 15.10)
I have followed the instructions for Ubuntu here https://graph-tool.skewed.de/download#debian to install the precompiled version of graph-tool onto my Ubuntu 15.10 system. It went okay except that I got the complaint, even after installing the key, that the graph-tool package wasn't verified. After installation, there seems to be a conflict between graph_tool and pylab. I usually start python 2.7 under ipython with ipython --pdb --pylab After doing so, the following works alright from graph_tool import Graph However, the following hangs forever: from graph_tool.all import graph_draw /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: cannot register existing type 'GtkWidget' g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: cannot add class private field to invalid type '<invalid>' g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: cannot add private field to invalid (non-instantiatable) type '<invalid>' g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: cannot register existing type 'GtkBuildable' g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: g_once_init_leave: assertion 'result != 0' failed g_type = info.get_g_type() I don't understand the errors, but possibly some test could avert the hang/crash outcome? Thanks, Chris -- 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.
On 16.02.2016 18:23, Chris Barrington-Leigh wrote:
I have followed the instructions for Ubuntu here
https://graph-tool.skewed.de/download#debian
to install the precompiled version of graph-tool onto my Ubuntu 15.10 system. It went okay except that I got the complaint, even after installing the key, that the graph-tool package wasn't verified.
After installation, there seems to be a conflict between graph_tool and pylab. I usually start python 2.7 under ipython with ipython --pdb --pylab
After doing so, the following works alright
from graph_tool import Graph
However, the following hangs forever:
from graph_tool.all import graph_draw /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: cannot register existing type 'GtkWidget' g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: cannot add class private field to invalid type '<invalid>' g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: cannot add private field to invalid (non-instantiatable) type '<invalid>' g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: cannot register existing type 'GtkBuildable' g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed g_type = info.get_g_type() /usr/lib/python2.7/dist-packages/gi/module.py:176: Warning: g_once_init_leave: assertion 'result != 0' failed g_type = info.get_g_type()
I don't understand the errors, but possibly some test could avert the hang/crash outcome?
This looks like a GTK+ problem. Do you known which matplotlib backend you are using? Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
On startup, ipython says: Using matplotlib backend: Qt4Agg Thanks, Chris
Then graph-tool.all imports just fine. I can't remember whether I have chosen my backend for a reason, but I can try using what you suggest. However, this is still undesirable behavior, is it not? Chris
I said:
I can't remember whether I have chosen my backend for a reason,
Oh, btw: it's because with GTK3Cairo, the plot windows become modal. If I use matplotlib.show(), I have to close the plot window to continue. Thanks! Chris
However, this is still undesirable behavior, is it not?
Chris
On 22.02.2016 18:42, cpblpublic+nabble@gmail.com wrote:
Then graph-tool.all imports just fine.
I can't remember whether I have chosen my backend for a reason, but I can try using what you suggest.
However, this is still undesirable behavior, is it not?
Yes, but it is not graph-tool's fault. What is happening is probably that the Qt backend is using GTK version 2 to do the drawing, and GTK 2 and 3 (which is used in graph-tool) are incompatible; they cannot be loaded simultaneously in the same program. An alternative fix is for you to configure Qt to use a "native" theme that does not use GTK at all. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (3)
-
Chris Barrington-Leigh -
cpblpublic+nabble@gmail.com -
Tiago de Paula Peixoto