igraph-help
[Top][All Lists]
Advanced

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

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


From: Matthew Walker
Subject: Re: [igraph] Python : ImportError: No module named core
Date: Mon, 2 Aug 2010 17:29:12 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4

Hi,

I dont know if this is useful to you (as I'm certain your implementation would be more efficient), but attached are my two efforts for implementing a "radius" measure: one in python and one in C/C++.

For the C++ I used unit++ [1] to test my code (but to be honest it's the first time I've worked with that too, so it might not be the best example of it's usage!)

Cheers,

Matthew

[1] http://unitpp.sourceforge.net/

On 10-07-28 06:17 PM, 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

Attachment: radius.py
Description: radius.py

Attachment: radius.cpp
Description: radius.cpp


reply via email to

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