RuntimeError: Gtk couldn't be initialized
Hi there Just installed graph-tool for the first time & get this error. What does it mean? How can i fix? I'm on Ubuntu Server 12.04 Much appreciated Al
from graph_tool.all import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/graph_tool/all.py", line 31, in <module> from graph_tool.draw import * File "/usr/lib/python2.7/dist-packages/graph_tool/draw/__init__.py", line 589, in <module> from cairo_draw import graph_draw, GraphWidget, GraphWindow, \ File "/usr/lib/python2.7/dist-packages/graph_tool/draw/cairo_draw.py", line 59, in <module> from gi.repository import Gtk, Gdk, GdkPixbuf File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 76, in load_module dynamic_module._load() File "/usr/lib/python2.7/dist-packages/gi/module.py", line 224, in _load overrides_modules = __import__('gi.overrides', fromlist=[self._namespace]) File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 1517, in <module> raise RuntimeError("Gtk couldn't be initialized") RuntimeError: Gtk couldn't be initialized
On Tue 22 May 2012 01:07:14 AM CEST, Alasdair Macmillan wrote:
Hi there
Just installed graph-tool for the first time & get this error. What does it mean? How can i fix? I'm on Ubuntu Server 12.04
This is a bug in the python bindings for Gtk, which fail to load if there is no DISPLAY environment variable. I have already included a workaround in graph-tool, and I'm preparing the new packages for ubuntu, which will be uploaded soon. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Hi, On 05/22/2012 07:53 AM, Tiago de Paula Peixoto wrote:
On Tue 22 May 2012 01:07:14 AM CEST, Alasdair Macmillan wrote:
Hi there
Just installed graph-tool for the first time & get this error. What does it mean? How can i fix? I'm on Ubuntu Server 12.04
This is a bug in the python bindings for Gtk, which fail to load if there is no DISPLAY environment variable. I have already included a workaround in graph-tool, and I'm preparing the new packages for ubuntu, which will be uploaded soon.
This is just to say I released version 2.2.16.1, which fixes this problem in particular. Now just a warning is produced if Gtk cannot be loaded. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
Alasdair Macmillan -
Tiago de Paula Peixoto