igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] general question about python igraph


From: Pascal Jürgens
Subject: Re: [igraph] general question about python igraph
Date: Thu, 28 Jan 2010 23:45:34 +0100

> taken from the documentation, but I get the error
> 
> python firstplot.py 
> Traceback (most recent call last):
>   File "firstplot.py", line 9, in <module>
>     plot(g, layout="fr", vertex_label=None)
>   File "/Library/Python/2.5/site-packages/igraph/drawing.py", line 738, in 
> plot
>     result = Plot(target, bbox)
>   File "/Library/Python/2.5/site-packages/igraph/drawing.py", line 222, in 
> __init__
>     self._surface_was_created=not isinstance(target, cairo.Surface)
>   File "/Library/Python/2.5/site-packages/igraph/drawing.py", line 51, in 
> __getattr__
>     raise TypeError, "plotting not available"
> TypeError: plotting not available
> bobs-imac:exampleR roberto$ 
> 
> 
> Do I need to install anything else?

Hello Bob,

you need to install the Cairo library and its python bindings. I'm on a mac, so 
I do this via macports:
sudo port install py26-cairo

Installing on linux should be similarly easy (via apt-get or similar). Your 
mileage may vary on Windows.

Yours,
Pascal



reply via email to

[Prev in Thread] Current Thread [Next in Thread]