igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] error while importing igraph


From: Tamas Nepusz
Subject: Re: [igraph] error while importing igraph
Date: Fri, 18 Apr 2008 15:15:00 +0200

Hi Hernan,

<type 'exceptions.ImportError'>: dlopen(/sw/lib/python2.5/site- packages/igraph/core.so, 2): no suitable image found. Did find:


How did you install igraph? There is a .mpkg installer for Intel Macs using Leopard, which can be downloaded here:

http://cneurocvs.rmki.kfki.hu/igraph/download/python_igraph-0.5-py2.5-macosx10.5.dmg

Did you use this one? What I find particularly strange is the following two error messages in your output:

/sw/lib/python2.5/site-packages/igraph/core.so: mach-o, but wrong architecture
This means that the C core of igraph is compiled for the wrong architecture (PPC instead of Intel or the opposite). Since you have an Intel-based Mac and I also compiled igraph for Intels, this shouldn't happen. Please examine the above mentioned file from the command line as follows:

file /sw/lib/python2.5/site-packages/igraph/core.so

This should list the architectures for which core.so was compiled. In my case, this looks like as follows:

core.so: Mach-O universal binary with 2 architectures
core.so (for architecture i386):        Mach-O bundle i386
core.so (for architecture ppc7400):     Mach-O bundle ppc

        /usr/local/lib/core.so: stat() failed with errno=62
I think errno=62 means that there are too many symbolic links the OS must follow when it tries to resolve the actual location of /usr/local/ lib/core.so. Moreover, there shouldn't be any file named like this (at least not in igraph). So I think core.so belongs to a different library installed on your Mac and Python tries to load it only because it failed to load /sw/lib/python2.5/site-packages/igraph/core.so. Therefore, we should first figure out why Python fails to load it.

Best,
--
Tamas





reply via email to

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