[Top][All Lists]

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

[igraph] Python : ImportError: No module named core

From: Matthew Walker
Subject: [igraph] Python : ImportError: No module named core
Date: Wed, 28 Jul 2010 18:17:48 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100423 Thunderbird/3.0.4


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 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,


[1] http://mathworld.wolfram.com/GraphRadius.html

reply via email to

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