igraph-help
[Top][All Lists]
Advanced

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

[igraph] plotting problem with python


From: Glenn Fulford
Subject: [igraph] plotting problem with python
Date: Mon, 4 Oct 2010 13:36:07 +1000

Hi, I have just installed igraph and I am having a problem with plotting. 

I have followed the instructions on the documentation site 
http://www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/install.html#graph-plotting-in-igraph-on-windows

which includes installing pycairo, and putting the required dll files into 
Python2.6\Lib\site-packages\cairo

igraph itself has installed properly, as running 
>>> import igraph.test
>>> igraph.test.test()
gives no errors, and all tests work. 

However, when I try to run 
from igraph import *
g = Graph.Famous("petersen")
summary(g)
plot(g)

I get the following error:

Traceback (most recent call last):
  File "C:\Documents and Settings\fulford\Desktop\netstuff\test1.py", line 4, 
in <module>
    plot(g)
  File "C:\Python26\lib\site-packages\igraph\drawing.py", line 762, in plot
    result = Plot(target, bbox)
  File "C:\Python26\lib\site-packages\igraph\drawing.py", line 222, in __init__
    self._surface_was_created=not isinstance(target, cairo.Surface)
  File "C:\Python26\lib\site-packages\igraph\drawing.py", line 51, in 
__getattr__
    raise TypeError, "plotting not available"
TypeError: plotting not available

I also tried the following:
import cairo

but got the error: 

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    import cairo
  File "C:\Python26\lib\site-packages\cairo\__init__.py", line 1, in <module>
    from _cairo import *
ImportError: DLL load failed: The specified module could not be found.

I am fairly new to python, so am wondering if there is something else I needed 
to do, like add something to my path variable so that the dll files are found? 

Any help or suggestions anyone can give me would be much appreciated, sicve I 
would very much like to use this software. . 
Thanks Glenn.

PS platform details: 

Platform: Windows XP
Python version 2.6 (32 bitr) (enthought python distribution 6.2)


Dr Glenn Fulford  +61 7 313 85196 QUT Mathematical Sciences, 
GPO Box 2343 Brisbane, Qld AUSTRALIA 4001.     Cricos no. 00213J
email: address@hidden; 


reply via email to

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