How to install python-igraph on Ubuntu 8.04 LTS 64-bit?

Apparently libigraph and python-igraph are the only packages on earth that cannot be installed via apt-get or easy_install in Ubuntu 8.04 LTS 64-bit.

Installing both sources from the source seems to be going smoothly ... until I try to use them.

When I run python, I get:

 >>> import igraph Traceback (most recent call last): File "<stdin>", line 1, in <module> File "igraph/__init__.py", line 30, in <module> from igraph.core import * ImportError: No module named core 

or (if I use easy_install version of python-igraph)

 >>> import igraph Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.linux-x86_64/egg/igraph/__init__.py", line 30, in <module> File "build/bdist.linux-x86_64/egg/igraph/core.py", line 7, in <module> File "build/bdist.linux-x86_64/egg/igraph/core.py", line 6, in __bootstrap__ ImportError: libigraph.so.0: cannot open shared object file: No such file or directory 

I grabbed the source from here

igraph 0.5.2 = http://igraph.sourceforge.net/download.html

python-igraph 0.5.2 = http://pypi.python.org/pypi/python-igraph/0.5.2

Can someone point me in the right direction?

+4
source share
4 answers

How did you compile? You did make install (if there was one).

Regarding the "library not found" error in the easy_install version, I would try the following:

  • ' sudo updatedb ' (to update the location database)
  • ' locate libigraph.so.0 ' (to find where this file is located on your system. If you did make install, it could go to / usr / local / lib ... or is it in the python lib directory?)
  • Find out if the directory where this file is located is missing from your current LD_LIBRARY_PATH (' echo $LD_LIBRARY_PATH ').
  • If this directory is not here, add it try ' export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/yourdirhere ' (make it permanent by adding it to /etc/ld.so.conf)/ ' ldconfig -n /yourdirhere '
+11
source

Please note that there are official Ubuntu packages for igraph available with Launchpad as of November 8, 2009. See the corresponding page on Launchpad for instructions. Unlike the earlier Debian package repository, this should work on both 32-bit and 64-bit architectures.

+2
source

Where is libigraph.so.0? It doesn't seem to be in the place python is looking for, e.g. / usr / lib, / usr / local / lib, etc.

0
source

I followed the steps at http://socialsynergyweb.org/network/blog/install-python-igraph-ubuntu-904-64-bit . Also, to run the actual igraph, I used the script python-igraph-0.5.2 / scripts / igraph. Now I can use igraf. If I do not use scripts / igraph script, I get the same error you get.

0
source

All Articles