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: Tue, 10 Aug 2010 12:24:49 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4

I can now answer my own question! So if there are those in the future who suffer the same problem...

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


The problem was that I launched python from within the directory where I compiled python-igraph. When I moved out of this directory (for example by opening a new terminal), I no longer saw this error (as I was now importing igraph from the PYTHONPATH and not from the current directory).

Hope this helps someone!

Matthew



reply via email to

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