Re: [Numpy-discussion] numpy build on windows

2008-09-10 Thread Miroslav Sabljic
On 9/5/08, David Cournapeau [EMAIL PROTECTED] wrote:

 You should first test the binary (import numpy; numpy.test()), to see
 whether the built was really sucessful.

Hy again! :)

I've managed to build numpy and install it. 'import numpy' works OK,
numpy.show_config() looks OK, but when I try tu run numpy.test()
python crashes. I've attached log of the python session and
screenshot. It always crashes at the same place, so my question is
what am I doing wrong and how can I debug the problem that is cousing
python.exe to crash? TIA!

This is my site.cfg:

[mkl]
include_dirs = M:\ASTLIB\ia32-unknown-winnt_vc9\intel\mkl\v10.0.1\include
library_dirs = M:\ASTLIB\ia32-unknown-winnt_vc9\intel\mkl\v10.0.1\ia32\lib
mkl_libs = mkl_c, libguide40
lapack_libs = mkl_lapack


-- 
Best regards,
  Miroslav
attachment: python_crash.png

numpy_crash.log
Description: Binary data
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] numpy build on windows

2008-09-05 Thread Miroslav Sabljic
On 9/5/08, David Cournapeau [EMAIL PROTECTED] wrote:

 First, you are trying to build with numpy 1.0.2, which is really old.
 Update to a more recent version.

Yes, 1.0.2 is the version we are using on Linux so I went with that
one. I will try newer version.


 The error you are seeing may indicate that it is not possible to build
 python 2.5 extensions with VS 2008 with distutils (the message says
 distutils did not detect VS 2008 installation, and that may well be
 caused by distutils not knowing how to deal with VS 2008).

The same error was when I was building PIL library, so I had to apply
small patch to msvccompiler.py file in Python's distutils and export
DISTUTILS_USE_SDK and MSSDK env variables to override builtin settings
which were always looking for VS 2003 compiler, then the build process
went without a problem. I followed the instructions described here
http://jeethurao.com/blog/?p=35.


 How did you build python with VS 2008 ?

With VS 2008. I opened Python-2.5.1\PCbuild8\pcbuild.sln file with
Visual Studio, included project files for tkinter, ssl, bddsb, etc...
and everything was built without problems. I have the full Python
2.5.1 distribution build, identical as the Python-2.5.1.msi
installation from python.org.


 P.S: Not to discourage you, but it will certainly be painful to build
 numpy with VS 2008 and python 2.5, because 2.5 distutils does not really
 handle VS 2008, and we use distutils for the build, and also because
 AFAIK, numpy has never been built with VS 2008 yet (2.6 will support VS
 2008, so that's something which will be fixed sooner rather than later,
 assuming numpy C code cannot be compiler with VS 2008 now).

Thanks for the info. It would certanly be bad news for me if numpy
really can't be build with VS 2008. I will try with numpy 1.1.1 and
see what happens.


-- 
Best regards,
  Miroslav
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] numpy build on windows

2008-09-05 Thread Miroslav Sabljic
On 9/5/08, David Cournapeau [EMAIL PROTECTED] wrote:

 This is not an error per se: fortran compiler is not mandatory. You will
 not get all the features of numpy, but you will get a working numpy
 without a fortran compiler. Looking at your build.log, it looks like it
 built successfully, no ?

Yes it looks so, but as this is first time I'm building numpy I wasn't
sure. I will now experiment further and try to build it with MKL. Tnx
for your help, I really appreciate it!


-- 
Best regards,
  Miroslav
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] numpy build on windows

2008-09-04 Thread Miroslav Sabljic
Hy people!

I'm quite a newbie regarding numpy so please excuse if I'm asking
stupid questions.
I need to build Python and couple of his site-packages on Windows
using Visual studio 2008. I've built Python 2.5.1 and now it's turn to
build numpy and I'm quite stuck because numpy build process is a
little confusing for me. So far I've read the instructions on
http://www.scipy.org/Installing_SciPy/Windows and created site.cfg
file with the following content:

[mkl]
include_dirs = C:\Program Files (x86)\Intel\MKL\10.0.012\include
library_dirs = C:\Program Files (x86)\Intel\MKL\10.0.012\ia32\lib
mkl_libs = mkl_ia32, mkl_c_dll, libguide40
lapack_libs = mkl_lapack

It keeps telling me that it can't find mkl_ia32, mkl_c_dll and
libguide40 at the following location but these libs are there.

Could you please instruct me to some detailed build howto for windows
and MSVC compiler? I would appreciate any help just to get this done
and build it.

I've attached a log file, output of 'python setup.py config'.

Thanks in advance!


-- 
Best regards,
  Miroslav
F2PY Version 2_3649
blas_opt_info:
blas_mkl_info:
  libraries mkl_ia32,mkl_c_dll,libguide40 not found in C:\Program Files 
(x86)\Intel\MKL\10.0.012\ia32\lib
  libraries mkl_ia32,mkl_c_dll,libguide40 not found in 
D:\users\sabljicm\python\Python25\lib
  libraries mkl_ia32,mkl_c_dll,libguide40 not found in C:\
  libraries mkl_ia32,mkl_c_dll,libguide40 not found in 
D:\users\sabljicm\python\Python25\libs
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in 
D:\users\sabljicm\python\Python25\lib
  libraries ptf77blas,ptcblas,atlas not found in C:\
  libraries ptf77blas,ptcblas,atlas not found in 
D:\users\sabljicm\python\Python25\libs
  NOT AVAILABLE

atlas_blas_info:
  libraries f77blas,cblas,atlas not found in 
D:\users\sabljicm\python\Python25\lib
  libraries f77blas,cblas,atlas not found in C:\
  libraries f77blas,cblas,atlas not found in 
D:\users\sabljicm\python\Python25\libs
  NOT AVAILABLE

blas_info:
  libraries blas not found in D:\users\sabljicm\python\Python25\lib
  libraries blas not found in C:\
  libraries blas not found in D:\users\sabljicm\python\Python25\libs
  NOT AVAILABLE

blas_src_info:
  NOT AVAILABLE

  NOT AVAILABLE

lapack_opt_info:
lapack_mkl_info:
mkl_info:
  libraries mkl_ia32,mkl_c_dll,libguide40 not found in C:\Program Files 
(x86)\Intel\MKL\10.0.012\ia32\lib
  libraries mkl_ia32,mkl_c_dll,libguide40 not found in 
D:\users\sabljicm\python\Python25\lib
  libraries mkl_ia32,mkl_c_dll,libguide40 not found in C:\
  libraries mkl_ia32,mkl_c_dll,libguide40 not found in 
D:\users\sabljicm\python\Python25\libs
  NOT AVAILABLE

  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in 
D:\users\sabljicm\python\Python25\lib
  libraries lapack_atlas not found in D:\users\sabljicm\python\Python25\lib
  libraries ptf77blas,ptcblas,atlas not found in C:\
  libraries lapack_atlas not found in C:\
  libraries ptf77blas,ptcblas,atlas not found in 
D:\users\sabljicm\python\Python25\libs
  libraries lapack_atlas not found in D:\users\sabljicm\python\Python25\libs
numpy.distutils.system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
  libraries f77blas,cblas,atlas not found in 
D:\users\sabljicm\python\Python25\lib
  libraries lapack_atlas not found in D:\users\sabljicm\python\Python25\lib
  libraries f77blas,cblas,atlas not found in C:\
  libraries lapack_atlas not found in C:\
  libraries f77blas,cblas,atlas not found in 
D:\users\sabljicm\python\Python25\libs
  libraries lapack_atlas not found in D:\users\sabljicm\python\Python25\libs
numpy.distutils.system_info.atlas_info
  NOT AVAILABLE

lapack_info:
  libraries lapack not found in D:\users\sabljicm\python\Python25\lib
  libraries lapack not found in C:\
  libraries lapack not found in D:\users\sabljicm\python\Python25\libs
  NOT AVAILABLE

lapack_src_info:
  NOT AVAILABLE

  NOT AVAILABLE

running config
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion