igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Installing igraph with EPD (enthought python distribution)


From: uxzmdlj02
Subject: Re: [igraph] Installing igraph with EPD (enthought python distribution) on mac os x
Date: Sun, 1 Apr 2012 22:03:21 -0500

Hi,
Got it working:
Installed the base igraph using homebrew (compiling from source was not 
working).
Installed the python interface from source using 'python setup.py install'
Copied `python-igraph-0.5.4/build/lib.macosx-10.5-x86_64-2.7/igraph` into 
/usr/local/lib/
And now it works!
Maybe harder than it should have been?
Anyway just glad it's working.
Peter

On Apr 1, 2012, at 9:32 PM, uxzmdlj02-at-sneakemail.com |igraph-help/Example 
Allow| wrote:

> Hi,
> I'm having trouble getting python-igraph to install on my mac.
> I'm using the enthought python distribution ("Python 2.7.2 -- EPD 7.1-2 
> (64-bit)")
> I downloaded the installer and it ran without a problem, but `import igraph` 
> can't find the module.
> So then I tried both building from source and using easy_install but both 
> give me the same errors (output copied below)
> It seems python is installing on my base python install ("Python 2.6.1 
> (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on 
> darwin") because if I run /usr/bin/python then `import igraph` works fine.
> How can I get it to install with EPD? I'm surprised I can't find any info 
> about this anywhere.
> Thanks!
> Peter
> 
> 
> 
> 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-0qScaV/python-igraph-0.5.4/egg-dist-tmp-ZgJ_cm
> Include path: /usr/include /usr/local/include
> Library path: 
> 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:
> src/graphobject.h:42: error: expected specifier-qualifier-list before 
> 'igraph_t'
> In file included from src/arpackobject.c:24:
> src/arpackobject.h:43: error: expected specifier-qualifier-list before 
> 'igraph_arpack_options_t'
> src/arpackobject.h:54: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> src/arpackobject.c: In function 'igraphmodule_ARPACKOptions_new':
> src/arpackobject.c:48: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:49: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params_out'
> src/arpackobject.c: In function 'igraphmodule_ARPACKOptions_getattr':
> src/arpackobject.c:72: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params_out'
> src/arpackobject.c:75: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params_out'
> src/arpackobject.c:77: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:77: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:80: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:82: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:84: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:86: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:88: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:91: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:93: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:95: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:97: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:99: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:101: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params_out'
> src/arpackobject.c:103: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params_out'
> src/arpackobject.c:105: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params_out'
> src/arpackobject.c:107: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params_out'
> src/arpackobject.c:109: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params_out'
> src/arpackobject.c:111: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params_out'
> src/arpackobject.c: In function 'igraphmodule_ARPACKOptions_setattr':
> src/arpackobject.c:132: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:143: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:143: error: 'igraph_real_t' undeclared (first use in this 
> function)
> src/arpackobject.c:143: error: (Each undeclared identifier is reported only 
> once
> src/arpackobject.c:143: error: for each function it appears in.)
> src/arpackobject.c:143: error: expected ';' before 'PyInt_AsLong'
> src/arpackobject.c:145: error: 'igraphmodule_ARPACKOptionsObject' has no 
> member named 'params'
> src/arpackobject.c:145: error: expected ';' before 'PyFloat_AsDouble'
> src/arpackobject.c: At top level:
> src/arpackobject.c:159: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> error: Setup script exited with error: command 'gcc' failed with exit status 1
> 
> 
> 
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help




reply via email to

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