[SciPy-user] Numpy distutils failing to report ndarrayobject.h

David Huard david.huard@gmail....
Thu Mar 29 20:07:54 CDT 2007


I checked and it's rather that ndarrayobject.h simply isn't in any folder.
If I remember correctly, on this installation numpy came installed with
enthought binaries (python24). Installing the numpy binaries from
scipy.orgsolves the problem.

David

2007/3/23, Travis Oliphant <oliphant@ee.byu.edu>:
>
> Anand Patil wrote:
>
> >Hi all,
> >
> >The following in a Pyrex extension module:
> >
> >cdef extern from "numpy/ndarrayobject.h":
> >    void* PyArray_DATA(object obj)
> >
> >produces the following in C:
> >
> >#include "numpy/ndarrayobject.h".
> >
> >The numpy distutils apparently fail to compile the extension module
> >under win2k, Python 2.4:
> >
> >PyMC2/PyrexLazyFunction.c:15:33: numpy/ndarrayobject.h: No such file or
> directory
> >PyMC2/PyrexLazyFunction.c: In function
> >`__pyx_f_17PyrexLazyFunction_12LazyFunction_get_array_data':
> >
> >
> >but it compiles fine on my machine, running OSX 10.4 and Python 2.5.
> >Unfortunately I can't experiment much because I don't have a Windows
> >machine available. Can anyone help me out with this?
> >
> >
>
> The include directory is not in the list of directories to search for
> the header files and so it is not being found.  I'm not sure what would
> cause this.  It's possible that the windows system doesn't have NumPy
> installed (or else the headers are not installed).  Or, it's possible
> that numpy.distutils is not adding the NumPy directory to the list of
> directories to search for header files.
>
> I'm not sure why it's not adding the location of the NumPy headers to
> the compile line.
>
> -Travis
>
>
>
> >Thanks,
> >Anand
> >_______________________________________________
> >SciPy-user mailing list
> >SciPy-user@scipy.org
> >http://projects.scipy.org/mailman/listinfo/scipy-user
> >
> >
> >
> >
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20070329/b76483bb/attachment.html 


More information about the SciPy-user mailing list