I've been unable to install python-igraph. Here's what I've tried:

1) Adding the igraph PPA (https://launchpad.net/~igraph/+archive/ppa), to
my sources.list, running apt-get update, and then apt-get install
python-igraph. This gives this error message:

The following packages have unmet dependencies:
 python-igraph : Depends: python (< 2.7) but 2.7.2-7ubuntu2 is to be
installed
E: Unable to correct problems, you have held broken packages.

Some googling suggests that this is a longstanding issue (see this post
from 2010:
http://lists.gnu.org/archive/html/igraph-help/2010-10/msg00070.html)

2) `easy_install python-igraph` gives a message about a missing header file:

src/random.c:27:27: fatal error: igraph_random.h: No such file or directory
compilation terminated.

Which I learned is because I need to install the C library before
installing the bindings. So I downloaded the C source code here (
http://sourceforge.net/projects/igraph/files/C%20library/0.6.5/igraph-0.6.5.tar.gz/download)
and followed the installation instructions (./configure; make; make
install) which went okay.

Then I reran easy_install, which seemed to be successful. Then when I try
to import igraph in python, I get:

>>> from igraph import Graph
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/usr/local/lib/python2.7/dist-packages/python_igraph-0.6.5-py2.7-linux-x86_64.egg/igraph/__init__.py",
line 34, in <module>
    from igraph._igraph import *
ImportError:
/usr/local/lib/python2.7/dist-packages/python_igraph-0.6.5-py2.7-linux-x86_64.egg/igraph/_igraph.so:
undefined symbol: igraph_warning_handler_ignore
>>>

3) I uninstalled the version of igraph I got from easy_install using `pip
uninstall python-igraph`. Then I downloaded the source from
http://pypi.python.org/packages/source/p/python-igraph/python-igraph-0.6.5.tar.gzand
ran `python setup.py install`.  Same error message as above when
trying
to use igraph.

And yeah, I'm pretty much ready to admit defeat. Any tips?
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to