[Top][All Lists]

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

Re: [igraph] Python : ImportError: No module named core

From: Pascal Jürgens
Subject: Re: [igraph] Python : ImportError: No module named core
Date: Thu, 29 Jul 2010 01:31:58 +0200


python needs to find your igraph  libraries (the c ones) during runtime. By 
installing the python interface, you don't copy the c library itself. The core 
error means that python can't find the installed files, which would normally be 
in a standard location such as /usr/local/lib.

Try pointing your system to the igraph lib directory:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/system/...(insert your full path 

If you're on linux, you might want to consult the docs on ldconfig for your 

Hope that helps,


On Jul 29, 2010, at 12:17 AM, Matthew Walker wrote:

> Hi,
> I am new to python and thought it would be interesting to try to implement a 
> "radius" measure as a first taste to how igraph and python work together.  
> (I'm assuming "radius" [1] isn't already in igraph... at least I couldn't 
> find it)
> I do not have root access to this computer so I have installed igraph (0.5.3) 
> locally using:
> ./configure --prefix=$HOME/system
> make
> make install
> I then installed python-igraph using:
> python setup.py install --home=$HOME/system
> That all seemed to work without any problems.  But when I try to import 
> igraph into python I get this error:
> $ python
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> 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
> I have seen a lot of other emails regarding this error and that there has to 
> be a core.so file in the correct place.  Well, I can't find core.so no matter 
> where I look!  However, neither can I figure out how I should produce core.so.
> I do have libcxcore.so but I suspect that is a completely different story.
> Can someone please tell me what I'm doing wrong? Or at least what to do right 
> ;o)
> Thanks greatly,
> Matthew
> [1] http://mathworld.wolfram.com/GraphRadius.html
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help

reply via email to

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