Installation of the latest version of graph tool with conda

Hi Tiago,

I am trying to install graph-tool on a server and the only way it is
possible without root permission is via this command line:

conda install -c ostrokach-forge graph-tool

But its version is


'2.25 (commit , )'

well, how could I update this version in the conda environment to 2.27?


attachment.html (540 Bytes)

Hi Zahra,

I'm not responsible for any anaconda package of graph-tool. They were made
by third parties, and you need to contact them and ask them to update to the
newest version.


Hi Tiago,

I have been using channel "ostrokach-forge" to even install properly
version 2.26 on a server and it constantly get error messages for its
dependencies. I have used conda to install the dependencies but now I get
this error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/anaconda3/lib/python3.5/site-packages/graph_tool/",
line 35, in <module>
    from graph_tool.draw import *
line 875, in <module>
    from .cairo_draw import graph_draw, cairo_draw,
get_hierarchy_control_points, default_cm
line 122, in <module>
    "font_slant": cairo.FONT_SLANT_NORMAL,
AttributeError: module 'cairo' has no attribute 'FONT_SLANT_NORMAL'

Do you have any suggestion how to solve this error message?

I installed cairocffi, cairo, pycairo but apparently none of them solve
this error message.

Thanks in advance.


attachment.html (3.28 KB)

Hi again,

I installed pycairo=1.10.0 again and reinstall graph-tool. Now I do not get
the error message I posted in my previous email but I get the new one. The
following error:

import graph_tool
from graph_tool.all import *

Gtk-Message: 18:16:20.063: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:16:20.067: Failed to load module "canberra-gtk-module"

import matplotlib.pyplot as plt
g = Graph()
v1 = g.add_vertex()
v2 = g.add_vertex()
e = g.add_edge(v1, v2)
graph_draw(g, vertex_text=g.vertex_index,

vertex_font_size=18,output_size=(200, 200))
Segmentation fault (core dumped)

I can see that I have gtk3 installed but I can not understand why it can
not be loaded? Any suggestion how to solve all these errors?


attachment.html (4.8 KB)

The gtk message is not an error, and it can be ignored.

The segfault is probably a bug with the package... You need to contact the
maintainer responsible.

To get an idea of what might be causing it, you can take a look at he GDB