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: Tamás Nepusz
Subject: Re: [igraph] Installing igraph with EPD (enthought python distribution) on mac os x
Date: Mon, 2 Apr 2012 11:49:03 +0200

Hi, 

I'm glad that it has been sorted out in the end. Anyway, since the installed 
igraph module worked fine in your base Python install, I was wondering whether 
you have accidentally executed "python setup.py install" using the base Python 
executable and not the one from EPD. Theoretically, setup.py queries the folder 
where the modules should be put from the Python executable, so the only way it 
could have ended up in your "base" Python install is that you executed it with 
/usr/bin/python and not EPD's python.

Note: easy_install python-igraph works only if igraph's header files are in 
/usr/include/igraph or /usr/local/include/igraph, or if pkg-config is installed 
and it "knows" where igraph's headers are. I have been considering to make 
igraph easy_installable in a way that it would download and configure the 
headers automatically if it cannot find the headers, but I have never had the 
time to do it properly. 

-- 
T.


On Monday, 2 April 2012 at 04:32, address@hidden 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 (mailto:address@hidden)
> https://lists.nongnu.org/mailman/listinfo/igraph-help






reply via email to

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