On 02/18/2013 01:58 AM, mikeschneider wrote:
> I'm wondering if anyone has an idea for a work around with my problem.
>
> I've written a gui using pyqt which I guess uses gtk 3.x. When I import
> graph_tool.draw, I get an error message saying

PyQt uses the QT libraries, not GTK+. It would be quite disturbing if it
imported any GTK+ symbols.

> (main.py:3823): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and
> GTK+ 3 in the same process is not supported
> Trace/breakpoint trap (core dumped)

This is probably due to something else pulling GTK+ 2 symbols, while
graph-tool uses GTK+ 3. A common source of this is matplotlib. Verify
your matplotlibrc file, and set it to use GTK+ 3 or QT.

> I've been thinking that the easiest solution would be to call anything
> graph_tool related in a separate process. Thoughts on this?

Seems overly complicated.

> How would I import graph_tool without importing draw? More specifically,
> which submodule provides the core functionality?

Just import anything but graph_tool.draw... The core functionality is
provided by just making 'import graph_tool'.

Cheers,
Tiago

-- 
Tiago de Paula Peixoto <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to