[Top][All Lists]

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

Re: [igraph] general question about python igraph

From: Roberto Pagliari
Subject: Re: [igraph] general question about python igraph
Date: Thu, 28 Jan 2010 14:55:19 -0800

i'm on a mac too, i'll try. Do you know if all R functions are available for python as well?

2010/1/28 Pascal Jürgens <address@hidden>
> 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.


igraph-help mailing list

Roberto Pagliari

reply via email to

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