[MMTK] numpy problem?

marcin.cieslik at gmail.com marcin.cieslik at gmail.com
Tue Nov 2 12:43:26 UTC 2010


try this to see where numpy thinks where it's headers are:
In [1]: import numpy
In [2]: numpy.get_include()
Out[2]: '/usr/lib/python2.7/site-packages/numpy/core/include'


On Nov 2, 2010 3:42am, Konrad Hinsen <research at khinsen.fastmail.net> wrote:
> On 1 Nov 2010, at 21:35, Ramgopal Mettu wrote:

> building 'Scientific_affinitypropagation' extension

> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os  
> -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch  
> x86_64 -pipe -IInclude  
> -I/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include  
> -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6  
> -c Src/Scientific_affinitypropagation.c -o  
> build/temp.macosx-10.6-universal-2.6/Src/Scientific_affinitypropagation.o  

> In file included from Src/Scientific_affinitypropagation.c:14:

> Include/Scientific/arrayobject.h:2:30: error: numpy/oldnumeric.h: No such  
> file or directory

> This latter error in turn leads to a bunch of other errors and I cannot  
> finish building Scientific. Now, I have version 1.2.1 of numpy. Is this  
> compatible with Scientific? Do I need a newer version, or am I missing  
> something else? Thanks!

> In principle NumPy 1.2 should be fine, but I haven't tested anything with  
> it for a long time.

> Given the paths printed above, there should be a file

> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include/numpy/oldnumeric.h

> on your computer but apparently it isn't because the compiler cannot find  
> it. If the file isn't there, your NumPy installation is incomplete or  
> broken for whatever reason. If it is there, well, then there's something  
> wrong with gcc - but I haven't seen that case yet!

> As a side remark, it looks like you are on a Mac (MacOS 10.6) and use  
> Apple's Python interpreter. Apple advises against installing any add-on  
> modules into their Python interpreter, both to protect their own Python  
> scripts against errors introduced by other packages and to protect your  
> Python packages against changes during system updates. In the long run,  
> you will be better off installing a second Python interpreter for use  
> with NumPy, MMTK, etc.

> Konrad.

> --

> ---------------------------------------------------------------------

> Konrad Hinsen

> Centre de Biophysique Moléculaire, CNRS Orléans

> Synchrotron Soleil - Division Expériences

> Saint Aubin - BP 48

> 91192 Gif sur Yvette Cedex, France

> Tel. +33-1 69 35 97 15

> E-Mail: research at khinsen dot fastmail dot net

> ---------------------------------------------------------------------

> _______________________________________________

> mmtk maillist - mmtk at starship.python.net

> http://starship.python.net/mailman/listinfo/mmtk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://starship.python.net/pipermail/mmtk/attachments/20101102/14a3f52b/attachment.html>

More information about the mmtk mailing list