![](https://secure.gravatar.com/avatar/547665790a071bb74c66ff10cc3a378a.jpg?s=120&d=mm&r=g)
I'm pleased to announce the release of NumPy 1.2.1. NumPy is the fundamental package needed for scientific computing with Python. It contains: * a powerful N-dimensional array object * sophisticated (broadcasting) functions * basic linear algebra functions * basic Fourier transforms * sophisticated random number capabilities * tools for integrating Fortran code. Besides it's obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide-variety of databases. This bugfix release comes almost one month after the 1.2.0 release. Please note that NumPy 1.2.1 requires Python 2.4 or greater. For information, please see the release notes: https://sourceforge.net/project/shownotes.php?release_id=636728&group_id=1369 You can download the release from here: https://sourceforge.net/project/showfiles.php?group_id=1369 Thank you to everybody who contributed to this release. Enjoy, -- Jarrod Millman Computational Infrastructure for Research Labs 10 Giannini Hall, UC Berkeley phone: 510.643.4014 http://cirl.berkeley.edu/
![](https://secure.gravatar.com/avatar/eda02bf85c20113641d4a78423674523.jpg?s=120&d=mm&r=g)
Hi, I cannot build NumPy 1.2.1 with the aforementionend environment. It works with Python 2.5 but with Python 2.6 I get:
python setup.py build -c mingw32 [lots of lines omitted] running build_src building py_modules sources building extension "numpy.core.multiarray" sources Generating build\src.win32-2.6\numpy\core\include/numpy\config.h error: None
Has anybody experienced this error and knows a remedy? Thanks for your advice. -- Regards, Peter Peter Maas, Aachen, Germany
![](https://secure.gravatar.com/avatar/9820b5956634e5bbad7f4ed91a232822.jpg?s=120&d=mm&r=g)
Peter Maas wrote:
Hi,
I cannot build NumPy 1.2.1 with the aforementionend environment. It works with Python 2.5 but with Python 2.6 I get:
Hi Peter, Unfortunately, you need to build numpy from svn if you wish to build numpy on python 2.6 with mingw ATM. No release of numpy contains the necessary changes to build with python 2.6 yet cheers, David
![](https://secure.gravatar.com/avatar/eda02bf85c20113641d4a78423674523.jpg?s=120&d=mm&r=g)
David Cournapeau schrieb:
Unfortunately, you need to build numpy from svn if you wish to build numpy on python 2.6 with mingw ATM. No release of numpy contains the necessary changes to build with python 2.6 yet
Hi David, thanks for your advice. I just checked out numpy svn co http://scipy.org/svn/numpy/trunk numpy and repeated the build command python setup.py build -c mingw32 The result: [...] running build_src building py_modules sources creating build creating build\src.win32-2.6 creating build\src.win32-2.6\numpy creating build\src.win32-2.6\numpy\distutils building extension "numpy.core.multiarray" sources creating build\src.win32-2.6\numpy\core Generating build\src.win32-2.6\numpy\core\include/numpy\config.h C:\home\peter\projekte\scipy\archiv\svn-6139\numpy\numpy\distutils\command\config.py:35: DeprecationWarning: +++++++++++++++++++++++++++++++++++++++++++++++++ Usage of try_run is deprecated: please do not use it anymore, and avoid configuration checks involving running executable on the target machine. +++++++++++++++++++++++++++++++++++++++++++++++++ DeprecationWarning) error: None Something has changed but the build still fails. Any idea which parts of numpy conflict with Python2.6? -- Regards, Peter. Peter Maas, Aachen, Germany
![](https://secure.gravatar.com/avatar/9820b5956634e5bbad7f4ed91a232822.jpg?s=120&d=mm&r=g)
Peter Maas wrote:
David Cournapeau schrieb:
Unfortunately, you need to build numpy from svn if you wish to build numpy on python 2.6 with mingw ATM. No release of numpy contains the necessary changes to build with python 2.6 yet
Hi David,
thanks for your advice. I just checked out numpy
svn co http://scipy.org/svn/numpy/trunk numpy
and repeated the build command
python setup.py build -c mingw32
Could you give the full build log, after having made sure to remove the build directory ? Because I have never seen this error: None, and without more context, it is difficult to see what could be wrong. cheers, David
![](https://secure.gravatar.com/avatar/eda02bf85c20113641d4a78423674523.jpg?s=120&d=mm&r=g)
David Cournapeau schrieb:
Could you give the full build log, after having made sure to remove the build directory ? Because I have never seen this error: None, and without more context, it is difficult to see what could be wrong.
Hi David, here it is: C:\home\peter\projekte\scipy\archiv\svn-6139\numpy>python setup.py build -c mingw32 Running from numpy source directory. non-existing path in 'numpy\\distutils': 'site.cfg' F2PY Version 2_6139 blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in c:\python26\lib libraries mkl,vml,guide not found in C:\ libraries mkl,vml,guide not found in c:\python26\libs NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in c:\python26\lib libraries ptf77blas,ptcblas,atlas not found in C:\ libraries ptf77blas,ptcblas,atlas not found in c:\python26\libs NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in c:\python26\lib libraries f77blas,cblas,atlas not found in C:\ libraries f77blas,cblas,atlas not found in c:\python26\libs NOT AVAILABLE C:\home\peter\projekte\scipy\archiv\svn-6139\numpy\numpy\distutils\system_info.py:1345: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. warnings.warn(AtlasNotFoundError.__doc__) blas_info: libraries blas not found in c:\python26\lib libraries blas not found in C:\ libraries blas not found in c:\python26\libs NOT AVAILABLE C:\home\peter\projekte\scipy\archiv\svn-6139\numpy\numpy\distutils\system_info.py:1354: UserWarning: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [blas]) or by setting the BLAS environment variable. warnings.warn(BlasNotFoundError.__doc__) blas_src_info: NOT AVAILABLE C:\home\peter\projekte\scipy\archiv\svn-6139\numpy\numpy\distutils\system_info.py:1357: UserWarning: Blas (http://www.netlib.org/blas/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [blas_src]) or by setting the BLAS_SRC environment variable. warnings.warn(BlasSrcNotFoundError.__doc__) NOT AVAILABLE lapack_opt_info: lapack_mkl_info: mkl_info: libraries mkl,vml,guide not found in c:\python26\lib libraries mkl,vml,guide not found in C:\ libraries mkl,vml,guide not found in c:\python26\libs NOT AVAILABLE NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in c:\python26\lib libraries lapack_atlas not found in c:\python26\lib libraries ptf77blas,ptcblas,atlas not found in C:\ libraries lapack_atlas not found in C:\ libraries ptf77blas,ptcblas,atlas not found in c:\python26\libs libraries lapack_atlas not found in c:\python26\libs numpy.distutils.system_info.atlas_threads_info NOT AVAILABLE atlas_info: libraries f77blas,cblas,atlas not found in c:\python26\lib libraries lapack_atlas not found in c:\python26\lib libraries f77blas,cblas,atlas not found in C:\ libraries lapack_atlas not found in C:\ libraries f77blas,cblas,atlas not found in c:\python26\libs libraries lapack_atlas not found in c:\python26\libs numpy.distutils.system_info.atlas_info NOT AVAILABLE C:\home\peter\projekte\scipy\archiv\svn-6139\numpy\numpy\distutils\system_info.py:1252: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. warnings.warn(AtlasNotFoundError.__doc__) lapack_info: libraries lapack not found in c:\python26\lib libraries lapack not found in C:\ libraries lapack not found in c:\python26\libs NOT AVAILABLE C:\home\peter\projekte\scipy\archiv\svn-6139\numpy\numpy\distutils\system_info.py:1263: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. warnings.warn(LapackNotFoundError.__doc__) lapack_src_info: NOT AVAILABLE C:\home\peter\projekte\scipy\archiv\svn-6139\numpy\numpy\distutils\system_info.py:1266: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. warnings.warn(LapackSrcNotFoundError.__doc__) NOT AVAILABLE running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src building py_modules sources creating build creating build\src.win32-2.6 creating build\src.win32-2.6\numpy creating build\src.win32-2.6\numpy\distutils building extension "numpy.core.multiarray" sources creating build\src.win32-2.6\numpy\core Generating build\src.win32-2.6\numpy\core\include/numpy\config.h C:\home\peter\projekte\scipy\archiv\svn-6139\numpy\numpy\distutils\command\config.py:35: DeprecationWarning: +++++++++++++++++++++++++++++++++++++++++++++++++ Usage of try_run is deprecated: please do not use it anymore, and avoid configuration checks involving running executable on the target machine. +++++++++++++++++++++++++++++++++++++++++++++++++ DeprecationWarning) error: None C:\home\peter\projekte\scipy\archiv\svn-6139\numpy> -- Regards, Peter. Peter Maas, Aachen, Germany
![](https://secure.gravatar.com/avatar/9820b5956634e5bbad7f4ed91a232822.jpg?s=120&d=mm&r=g)
Peter Maas wrote:
David Cournapeau schrieb:
Could you give the full build log, after having made sure to remove the build directory ? Because I have never seen this error: None, and without more context, it is difficult to see what could be wrong.
Hi David,
The underlying problem is that you don't have mingw in your PATH (you should be able to run gcc from the command line). I don't know yet why with python 2.6 the error is not explicit (with 2.5, you get a failure later, and you know it is because gcc.exe is not found). Adding mingw\bin into your PATH should solve the problem. I can't spend much time on this ATM, but for the record, the problem is in distutils.command.config. David
![](https://secure.gravatar.com/avatar/eda02bf85c20113641d4a78423674523.jpg?s=120&d=mm&r=g)
David Cournapeau schrieb:
The underlying problem is that you don't have mingw in your PATH (you should be able to run gcc from the command line).
Hi David, If i open a cmd window and type "gcc" it responds "gcc: no input files". My PATH looks like ...;C:\MinGW\bin;... And with python 2.5 the build works!
I can't spend much time on this ATM, but for the record, the problem is in distutils.command.config.
Thanks a lot for the time you already spent! And thanks for the hint although I don't have much hope that I'm able to find the bug. I'll stick with Python 2.5 in the meantime. -- Regards, Peter. Peter Maas, Aachen, Germany
![](https://secure.gravatar.com/avatar/9820b5956634e5bbad7f4ed91a232822.jpg?s=120&d=mm&r=g)
Peter Maas wrote:
Hi David,
If i open a cmd window and type "gcc" it responds "gcc: no input files". My PATH looks like ...;C:\MinGW\bin;... And with python 2.5 the build works!
Which version of gcc are you using ? David
![](https://secure.gravatar.com/avatar/eda02bf85c20113641d4a78423674523.jpg?s=120&d=mm&r=g)
David Cournapeau schrieb:
Which version of gcc are you using ?
C:\>gcc -v Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw-vista special r3) -- Regards, Peter Peter Maas, Aachen, Germany
![](https://secure.gravatar.com/avatar/9820b5956634e5bbad7f4ed91a232822.jpg?s=120&d=mm&r=g)
Peter Maas wrote:
David Cournapeau schrieb:
Which version of gcc are you using ?
C:\>gcc -v Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw-vista special r3)
Ok, that's not the alpha version. Unfortunately, I have no idea on what could be different in your setup from mine. Could you open a ticket on numpy trac, so we don't forget this ? Since I can not work on it now, I am afraid I will forget about it otherwise, David
![](https://secure.gravatar.com/avatar/eda02bf85c20113641d4a78423674523.jpg?s=120&d=mm&r=g)
David Cournapeau schrieb:
Ok, that's not the alpha version. Unfortunately, I have no idea on what could be different in your setup from mine. Could you open a ticket on numpy trac, so we don't forget this ? Since I can not work on it now, I am afraid I will forget about it otherwise,
Hi David, Ticket is http://scipy.org/scipy/numpy/ticket/970. Thanks for your help. Regards, Peter. Peter Maas, Aachen, Germany.
participants (3)
-
David Cournapeau
-
Jarrod Millman
-
Peter Maas