[Top][All Lists]

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

[igraph] ImportError: /usr/local/lib/python2.6/..../igraph/core.so: unde

From: Jean-Paul Bouchet
Subject: [igraph] ImportError: /usr/local/lib/python2.6/..../igraph/core.so: undefined symbol: igraph_layout_star
Date: Thu, 07 Jul 2011 12:42:49 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110505 Icedove/3.0.11

I would use python-igraph-0.5.4 on a Debian Squeeze server.
I have loaded the following packages:
apt-get install libigraph0
==> ... Paramétrage de libigraph0 (0.5.3-1) ...
apt-get install libigraph0-dev
==> ... Paramétrage de libigraph0-dev (0.5.3-1) ...

... then the python-igraph module:
wget http://pypi.python.org/packages/source/p/python-igraph/python-igraph-0.5.4.tar.gz

With the default version of Python (2.6.6), I have built and installed this module :
python setup.py build
python setup.py install
With just very few warnings such as :
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DDEBIAN -fPIC -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include/python2.6 -c src/graphobject.c -o build/temp.linux-x86_64-2.6/src/graphobject.o
src/graphobject.c: In function ‘igraphmodule_Graph_layout_star’:
src/graphobject.c:4732: warning: implicit declaration of function ‘igraph_layout_star’

So it should be OK. But I meet the following error when I execute the program pyrocleaner.py which has calls to igraph:
python pyrocleaner.py
Traceback (most recent call last):
  File "pyrocleaner.py", line 35, in <module>
    from igraph import *
  File "/usr/local/lib/python2.6/dist-packages/python_igraph-0.5.4-py2.6-linux-x86_64.egg/igraph/__init__.py", line 30, in <module>
    from igraph.core import *
ImportError: /usr/local/lib/python2.6/dist-packages/python_igraph-0.5.4-py2.6-linux-x86_64.egg/igraph/core.so: undefined symbol: igraph_layout_star

What have I missed ?
May be the packages libigraph0 and libigraph0-dev that I have launched are too old ?
Should I recompile and install igraph-0.5.4 as explained at http://igraph.wikidot.com/installing-python-igraph-on-linux ?
Or may I find somewhere more recent versions of these packages ?

ll /usr/lib/libigraph*
-rw-r--r-- 1 root root 2982518 24 nov.   2009 /usr/lib/libigraph.a
-rw-r--r-- 1 root root    1007 24 nov.   2009 /usr/lib/libigraph.la
lrwxrwxrwx 1 root root      18  7 juil. 10:06 /usr/lib/libigraph.so -> libigraph.so.0.0.0
lrwxrwxrwx 1 root root      18  7 juil. 10:04 /usr/lib/libigraph.so.0 -> libigraph.so.0.0.0
-rw-r--r-- 1 root root 1778816 24 nov.   2009 /usr/lib/libigraph.so.0.0.0

Thanks a lot for your advices.

Jean-Paul Bouchet
Institut National de la Recherche Agronomique - Centre de Provence, Alpes, Côte d'Azur
UR 1052 <http://w3.avignon.inra.fr/gafl/en> - Génétique et Amélioration des Fruits et Légumes
Domaine Saint-Maurice - BP 94 - F-84143 Montfavet cedex - France
E-mail : <mailto:address@hidden>

reply via email to

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