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?

Cheers,
Zahra

On Tue, Jul 10, 2018 at 4:12 PM, Zahra Sheikhbahaee <[email protected]>
wrote:

> 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/all.py",
> line 35, in <module>
>     from graph_tool.draw import *
>   File 
> "/home/anaconda3/lib/python3.5/site-packages/graph_tool/draw/__init__.py",
> line 875, in <module>
>     from .cairo_draw import graph_draw, cairo_draw,
> get_hierarchy_control_points, default_cm
>   File 
> "/home/anaconda3/lib/python3.5/site-packages/graph_tool/draw/cairo_draw.py",
> 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.
>
> Best,
> Zahra
>
> On Sat, Jul 7, 2018 at 6:46 PM, Tiago de Paula Peixoto <[email protected]>
> wrote:
>
>> 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.
>>
>> Best,
>> Tiago
>>
>> Am 06.07.2018 um 23:42 schrieb Zahra Sheikhbahaee:
>> > 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
>> >>>> graph_tool.__version__
>> > '2.25 (commit , )'
>> >
>> > well, how could I update this version in the conda environment to 2.27?
>> >
>> > Thanks,
>> > Zahra
>> >
>> >
>> > _______________________________________________
>> > graph-tool mailing list
>> > [email protected]
>> > https://lists.skewed.de/mailman/listinfo/graph-tool
>> >
>>
>>
>> --
>> Tiago de Paula Peixoto <[email protected]>
>> _______________________________________________
>> graph-tool mailing list
>> [email protected]
>> https://lists.skewed.de/mailman/listinfo/graph-tool
>>
>
>
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to