igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] python-igraph OSX Lion install errors


From: Tamas Nepusz
Subject: Re: [igraph] python-igraph OSX Lion install errors
Date: Fri, 04 Nov 2011 17:05:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

> But I cannot seem to import "igraph" (maybe i don't know how): 
Are you standing in the same folder where you built the Python interface by
any chance? If so, change to a different folder where there is no "igraph"
subfolder and try importing from there.

(Explanation: when you type "import igraph", Python first looks for a file
named "igraph.py" in the current folder, then for a file named
"igraph/__init__.py" in the current folder, and only after this does it look
for a module named "igraph" in its own search path. Since the build folder
contains a subfolder named "igraph" but without the "core.so" file which
provides the bridge between the C core and Python, Python will throw an
error, not realizing that it should simply keep on searching for the "real"
igraph module in its search path).

Cheers,
Tamas



reply via email to

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