igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Error message when plotting graph with python iGraph


From: Tamás Nepusz
Subject: Re: [igraph] Error message when plotting graph with python iGraph
Date: Sun, 27 Mar 2016 09:08:24 +0200

Hi,

Type "import cairo" at your Python prompt. If it doesn't work, it means that Cairo was not installed properly (and this is what causes igraph to print "plotting not available"). It might be the case that you have multiple Python installations on your machine (e.g., the system Python and another one from Homebrew), and igraph was installed for one of them and Cairo for the other one.

T. 

On 26 Mar 2016, at 21:33, Rodrigo Matus Nicodemos <address@hidden> wrote:

Hi Jan,

I did install pycairo, specifically py2cairo. I used homebrew to install it, but I am not sure if it was installed properly with homebrew.

Thanks.

Rodrigo

On Sat, Mar 26, 2016 at 4:19 PM, Jan Eberhardt <address@hidden> wrote:
Hello,

did you install pycairo?

This may give you a hint:

http://www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/install.html

Kind regards
jan

Zitat von Rodrigo Matus Nicodemos <address@hidden>:


Hello,

I've installed python iGraph and its dependencies to try it out. I have
been going through the tutorial and I get an error message when I try to
plot the graph.

Here is the simple code I used from the tutorial:

from igraph import *

g = Graph([(0,1),(0,2),(2,3),(3,4),(4,2),(2,5),(5,0),(6,3),(5,6)])

g.vs["name"] = ["Alice", "Bob", "Claire", "Dennis", "Esther", "Frank",
"George"]

g.vs["age"] = [25, 31, 18, 47, 22, 23, 50]

g.vs["gender"] = ["f", "m", "f", "m", "f", "m", "m"]

g.es["is_formal"] = [False, False, True, True, True, False, True,
False, False]

layout = g.layout("kk")


When I do the next command:


plot(g, layout = layout)


I get this error message:


Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "build/bdist.macosx-10.5-x86_64/egg/igraph/drawing/__init__.py",
line 446, in plot

  File "build/bdist.macosx-10.5-x86_64/egg/igraph/drawing/__init__.py",
line 117, in __init__

  File "build/bdist.macosx-10.5-x86_64/egg/igraph/drawing/utils.py", line
396, in __getattr__

TypeError: plotting not available


I am not sure why I am getting this? I would appreciate any advise.


Thanks.




_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help

reply via email to

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