[Pythonmac-SIG] Building numpy/scipy for python3 on MacOS Lion

Ned Deily nad at acm.org
Sun Mar 25 03:29:55 CEST 2012


In article <1332549773.19437.YahooMailNeo at web29505.mail.ird.yahoo.com>,
 Eddy Barratt <eddybarratt1 at yahoo.co.uk> wrote:
> Yeah, thanks, your right I typed it in wrong, but it still isn't working, 
> though it did build for longer this time before failing.
> 
> This is the error code this time. It talks about something 
> being depreciated in numpy. Thank you so much for your help with this.
> 
> Eddy
> 
> compiling C sources
> C compiler: clang -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 
> -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot 
> /Developer/SDKs/MacOSX10.6.sdk
> 
> compile options: '-DNO_ATLAS_INFO=3 -DUSE_VENDOR_BLAS=1 
> -I/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-package
> s/numpy/core/include 
> -I/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c'
> extra options: '-msse3'
> clang: scipy/sparse/linalg/dsolve/_superlumodule.c
> In file included from scipy/sparse/linalg/dsolve/_superlumodule.c:18:
> In file included from 
> /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
> numpy/core/include/numpy/arrayobject.h:15:
> In file included from 
> /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
> numpy/core/include/numpy/ndarrayobject.h:17:
> In file included from 
> /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
> numpy/core/include/numpy/ndarraytypes.h:1972:
> /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
> numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using 
> deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API" 
> [-W#warnings]
> #warning "Using deprecated NumPy API, disable it by #defining 
> NPY_NO_DEPRECATED_API"
>  ^
> scipy/sparse/linalg/dsolve/_superlumodule.c:268:9: error: non-void function 
> 'PyInit__superlu' should return a value [-Wreturn-type]
>         return;
>         ^
> 1 warning and 1 error generated.
> In file included from scipy/sparse/linalg/dsolve/_superlumodule.c:18:
> In file included from 
> /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
> numpy/core/include/numpy/arrayobject.h:15:
> In file included from 
> /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
> numpy/core/include/numpy/ndarrayobject.h:17:
> In file included from 
> /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
> numpy/core/include/numpy/ndarraytypes.h:1972:
> /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
> numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using 
> deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API" 
> [-W#warnings]
> #warning "Using deprecated NumPy API, disable it by #defining 
> NPY_NO_DEPRECATED_API"
>  ^
> scipy/sparse/linalg/dsolve/_superlumodule.c:268:9: error: non-void function 
> 'PyInit__superlu' should return a value [-Wreturn-type]
>         return;
>         ^
> 1 warning and 1 error generated.
> error: Command "clang -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g 
> -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 
> -isysroot /Developer/SDKs/MacOSX10.6.sdk -DNO_ATLAS_INFO=3 
> -DUSE_VENDOR_BLAS=1 
> -I/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-package
> s/numpy/core/include 
> -I/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c 
> scipy/sparse/linalg/dsolve/_superlumodule.c -o 
> build/temp.macosx-10.6-intel-3.2/scipy/sparse/linalg/dsolve/_superlumodule.o 
> -msse3" failed with exit status 1

The deprecation warning isn't necessarily a problem but the compile 
error is.  Sorry, I have no experience with scipy so I would only be 
guessing what the problem here is.  Suggest you ask on the Scipy-User 
mailing list (http://www.scipy.org/Mailing_Lists).  Good luck!

-- 
 Ned Deily,
 nad at acm.org



More information about the Pythonmac-SIG mailing list