igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] igraph-help Digest, Vol 62, Issue 6


From: Denzil Correa
Subject: Re: [igraph] igraph-help Digest, Vol 62, Issue 6
Date: Sun, 11 Sep 2011 21:58:33 +0530

I now installed the igraph-core using brew. I am now able to successfully install igraph both via easy_install and source. However, I run into the following error on import

Python 2.7.1 |EPD 7.0-2 (32-bit)| (r271:86832, Dec  3 2010, 15:41:32)
[GCC 4.0.1 (Apple Inc. build 5488)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import igraph
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/python_igraph-0.5.4-py2.7-macosx-10.5-i386.egg/igraph/__init__.py", line 30, in <module>
    from igraph.core import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/python_igraph-0.5.4-py2.7-macosx-10.5-i386.egg/igraph/core.so, 2): Symbol not found: _igraph_eit_destroy
  Referenced from: /Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/python_igraph-0.5.4-py2.7-macosx-10.5-i386.egg/igraph/core.so
  Expected in: flat namespace
 in /Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/python_igraph-0.5.4-py2.7-macosx-10.5-i386.egg/igraph/core.so


I also notice the highlighted when using easy_install

Denzil-Correas-MacBook-Pro:~ denzilc$ sudo easy_install-2.7 python-igraph
install_dir /Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/
Searching for python-igraph
Reading http://pypi.python.org/simple/python-igraph/
Best match: python-igraph 0.5.4
Downloading http://pypi.python.org/packages/source/p/python-igraph/python-igraph-0.5.4.tar.gz#md5=c80941cc28cd723333c886e725f70506
Processing python-igraph-0.5.4.tar.gz
Running python-igraph-0.5.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-iuNGl0/python-igraph-0.5.4/egg-dist-tmp-TJgGeX
Include path: /usr/include /usr/local/include
Library path:
ld: warning: in /usr/local/lib/libigraph.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
zip_safe flag not set; analyzing archive contents...

Adding python-igraph 0.5.4 to easy-install.pth file
Installing igraph script to /Library/Frameworks/Python.framework/Versions/7.0/bin

Installed /Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/python_igraph-0.5.4-py2.7-macosx-10.5-i386.egg
Processing dependencies for python-igraph
Finished processing dependencies for python-igraph




On Sun, Sep 11, 2011 at 9:30 PM, <address@hidden> wrote:

------------------------------

Message: 4
Date: Sun, 11 Sep 2011 16:02:54 +0200
From: Tam?s Nepusz <address@hidden>
To: Help for igraph users <address@hidden>
Subject: Re: [igraph] Igraph install on Python 2.7.1 with OS X Snow
       Leopard using Enthought Python Distribution
Message-ID: <address@hidden>
Content-Type: text/plain; charset=windows-1252

Dear Denzil,

> In file included from src/arpackobject.c:24:
> src/arpackobject.h:28:27: error: igraph/arpack.h: No such file or directory
> In file included from src/arpackobject.h:29,
>                  from src/arpackobject.c:24:
> src/graphobject.h:28:27: error: igraph/igraph.h: No such file or directory
> In file included from src/arpackobject.h:29,
>                  from src/arpackobject.c:24:
Have you installed the C core of the igraph library from source? The Python interface is really just an interface to the C core of the igraph library, so you need to compile and install the C core first.

--
T.




******************************************



--
Regards,

Denzil Correa
IIIT-Delhi
--------------------------------------------
Q: Why is this email five sentences or less?
A: http://five.sentenc.es




reply via email to

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