Re: [Numpy-discussion] Import numpy fails on cygwin python

2009-12-04 Thread Olivia Cheronet
 From: David Cournapeau courn...@gmail.com
  Does the file
  /usr/lib/python2.5/site-packages/numpy/linalg/lapack_lite.so exist ?
 
  cheers,
 
  David
 
 
  Indeed, this file is not there. Where can I find it?
 
 My mistake, cygwin uses the same extension as windows, that is .dll
 and not .so, so I would need the output of ldd lapack_lite.dll as well
 as the output of nm lapack_lite.dll



Here are the outputs of cygcheck (as advised in 
http://cygwin.com/ml/cygwin/2009-10/msg4.html) and nm.

I have found cyglapack.dll in lib/lapack/cygblas.dll.

Thanks,

Olivia

$ cygcheck /lib/python2.5/site-packages/numpy/linalg/lapack_lite.dll 
C:\cygwin\lib/python2.5/site-packages/numpy/linalg/lapack_lite.dll
  C:\cygwin\bin\cygwin1.dll
C:\WINDOWS\system32\ADVAPI32.DLL
  C:\WINDOWS\system32\KERNEL32.dll
C:\WINDOWS\system32\ntdll.dll
  C:\WINDOWS\system32\RPCRT4.dll
C:\WINDOWS\system32\Secur32.dll
Error: could not find cyglapack.dll
  C:\cygwin\bin\libpython2.5.dll


$ nm /lib/python2.5/site-packages/numpy/linalg/lapack_lite.dll 
10008000 b .bss
10008120 b .bss
10008020 b .bss
10008120 b .bss
10008060 b .bss
10008060 b .bss
10008120 b .bss
10008120 b .bss
10008120 b .bss
10008110 b .bss
10008120 b .bss
10008120 b .bss
10008020 b .bss
10008120 b .bss
10008120 b .bss
10006160 d .data
10006160 d .data
10006160 d .data
10006160 d .data
10006160 d .data
10006000 d .data
10006160 d .data
10006160 d .data
10006160 d .data
10006160 d .data
10006160 d .data
10006160 d .data
10006160 d .data
10006160 d .data
10006160 d .data
1000a03c i .idata$2
1000a000 i .idata$2
1000a028 i .idata$2
1000a014 i .idata$2
1000a0cc i .idata$4
1000a078 i .idata$4
1000a110 i .idata$4
1000a0c4 i .idata$4
1000a08c i .idata$4
1000a0c8 i .idata$4
1000a100 i .idata$4
1000a0e0 i .idata$4
1000a0bc i .idata$4
1000a0e8 i .idata$4
1000a10c i .idata$4
1000a0b8 i .idata$4
1000a120 i .idata$4
1000a0ac i .idata$4
1000a114 i .idata$4
1000a090 i .idata$4
1000a09c i .idata$4
1000a12c i .idata$4
1000a0b0 i .idata$4
1000a070 i .idata$4
1000a0f8 i .idata$4
1000a11c i .idata$4
1000a0a8 i .idata$4
1000a06c i .idata$4
1000a064 i .idata$4
1000a0a0 i .idata$4
1000a0f0 i .idata$4
1000a068 i .idata$4
1000a0a4 i .idata$4
1000a108 i .idata$4
1000a080 i .idata$4
1000a088 i .idata$4
1000a098 i .idata$4
1000a0d0 i .idata$4
1000a104 i .idata$4
1000a130 i .idata$4
1000a0b4 i .idata$4
1000a084 i .idata$4
1000a07c i .idata$4
1000a12c i .idata$4
1000a0f4 i .idata$4
1000a094 i .idata$4
1000a0ec i .idata$4
1000a0d8 i .idata$4
1000a124 i .idata$4
1000a128 i .idata$4
1000a118 i .idata$4
1000a0c0 i .idata$4
1000a0fc i .idata$4
1000a0e4 i .idata$4
1000a0d4 i .idata$4
1000a074 i .idata$4
1000a0dc i .idata$4
1000a1cc i .idata$5
1000a1c4 i .idata$5
1000a148 i .idata$5
1000a1b8 i .idata$5
1000a1e8 i .idata$5
1000a1fc i .idata$5
1000a1e0 i .idata$5
1000a1dc i .idata$5
1000a140 i .idata$5
1000a158 i .idata$5
1000a1f8 i .idata$5
1000a1a8 i .idata$5
1000a190 i .idata$5
1000a1ac i .idata$5
1000a1a4 i .idata$5
1000a19c i .idata$5
1000a144 i .idata$5
1000a15c i .idata$5
1000a194 i .idata$5
1000a198 i .idata$5
1000a18c i .idata$5
1000a1b0 i .idata$5
1000a188 i .idata$5
1000a17c i .idata$5
1000a16c i .idata$5
1000a160 i .idata$5
1000a180 i .idata$5
1000a178 i .idata$5
1000a170 i .idata$5
1000a134 i .idata$5
1000a174 i .idata$5
1000a168 i .idata$5
1000a150 i .idata$5
1000a1a0 i .idata$5
1000a184 i .idata$5
1000a14c i .idata$5
1000a164 i .idata$5
1000a200 i .idata$5
1000a1bc i .idata$5
1000a1d4 i .idata$5
1000a154 i .idata$5
1000a1d8 i .idata$5
1000a1c0 i .idata$5
1000a1fc i .idata$5
1000a1c8 i .idata$5
1000a13c i .idata$5
1000a1e4 i .idata$5
1000a1d0 i .idata$5
1000a1f4 i .idata$5
1000a1f0 i .idata$5
1000a138 i .idata$5
1000a1b4 i .idata$5
1000a1ec i .idata$5
1000a214 i .idata$6
1000a370 i .idata$6
1000a2a8 i .idata$6
1000a39c i .idata$6
1000a2c0 i .idata$6
1000a440 i .idata$6
1000a488 i .idata$6
1000a2d8 i .idata$6
1000a3c4 i .idata$6
1000a46c i .idata$6
1000a29c i .idata$6
1000a35c i .idata$6
1000a2cc i .idata$6
1000a458 i .idata$6
1000a2f0 i .idata$6
1000a2fc i .idata$6
1000a248 i .idata$6
1000a320 i .idata$6
1000a3ec i .idata$6
1000a314 i .idata$6
1000a32c i .idata$6
1000a344 i .idata$6
1000a234 i .idata$6
1000a3dc i .idata$6
1000a204 i .idata$6
1000a308 i .idata$6
1000a4c0 i .idata$6
1000a350 i .idata$6
1000a4ac i .idata$6
1000a26c i .idata$6
1000a278 i .idata$6
1000a220 i .idata$6
1000a284 i .idata$6
1000a388 i .idata$6
1000a2e4 i .idata$6
1000a258 i .idata$6
1000a3b4 i .idata$6
1000a338 i .idata$6
1000a400 i .idata$6
1000a42c i .idata$6
1000a290 i .idata$6
1000a49c i .idata$6
1000a2b4 i .idata$6
1000a414 i .idata$6
1000a260 i .idata$6
1000a504 i .idata$7
1000a548 i .idata$7
1000a530 i .idata$7
1000a544 i .idata$7
1000a53c i .idata$7
1000a534 i .idata$7
1000a538 i .idata$7
1000a52c i .idata$7
1000a528 i .idata$7
1000a51c i .idata$7
1000a50c i .idata$7
1000a520 i .idata$7
1000a518 i .idata$7
1000a510 i .idata$7
1000a514 i .idata$7
1000a508 i .idata$7
1000a540 i 

[Numpy-discussion] Import numpy fails on cygwin python

2009-12-02 Thread Olivia Cheronet
Hello!

I have built numpy (updated to the trunk) for my cygwin (1.5.25) Python (2.5.2).
However, testing fails when I try to import numpy in python (see output below).

I have been searching around for a solution, but everything has failed so far...

I would be grateful for any advice.

Thank you,

Olivia

$ python
Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type help, copyright, credits or license for more information.
 import numpy
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python2.5/site-packages/numpy/__init__.py, line 132, in modul
e
import add_newdocs
  File /usr/lib/python2.5/site-packages/numpy/add_newdocs.py, line 9, in modu
le
from lib import add_newdoc
  File /usr/lib/python2.5/site-packages/numpy/lib/__init__.py, line 13, in mo
dule
from polynomial import *
  File /usr/lib/python2.5/site-packages/numpy/lib/polynomial.py, line 17, in 
module
from numpy.linalg import eigvals, lstsq
  File /usr/lib/python2.5/site-packages/numpy/linalg/__init__.py, line 47, in
module
from linalg import *
  File /usr/lib/python2.5/site-packages/numpy/linalg/linalg.py, line 22, in m
odule
from numpy.linalg import lapack_lite
ImportError: No such file or directory


  
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Import numpy fails on cygwin python

2009-12-02 Thread Olivia Cheronet
- Original Message 
 From: David Cournapeau da...@ar.media.kyoto-u.ac.jp

 Does the file
 /usr/lib/python2.5/site-packages/numpy/linalg/lapack_lite.so exist ?

 cheers,
 
 David


Indeed, this file is not there. Where can I find it?

Thanks.

Olivia


  
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Installing numpy under cygwin

2009-11-28 Thread Olivia Cheronet
Thank you. This time the building of Numpy worked with no error message. 

However, when I now try to import Numpy in Python, there is a problem with 
lapack_lite (see below). 

Thanks again!

Olivia


$ python
Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14) 
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type help, copyright, credits or license for more information.
 import numpy
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python2.5/site-packages/numpy/__init__.py, line 132, in modul
e
import add_newdocs
  File /usr/lib/python2.5/site-packages/numpy/add_newdocs.py, line 9, in modu
le
from lib import add_newdoc
  File /usr/lib/python2.5/site-packages/numpy/lib/__init__.py, line 13, in mo
dule
from polynomial import *
  File /usr/lib/python2.5/site-packages/numpy/lib/polynomial.py, line 17, in 
module
from numpy.linalg import eigvals, lstsq
  File /usr/lib/python2.5/site-packages/numpy/linalg/__init__.py, line 47, in 
module
from linalg import *
  File /usr/lib/python2.5/site-packages/numpy/linalg/linalg.py, line 22, in m
odule
from numpy.linalg import lapack_lite
ImportError: No such file or directory

- Original Message 
 From: David Cournapeau courn...@gmail.com

 Please update to the trunk - I can see the error as well for 1.3.0,
 and the trunk does build correctly on cygwin. I don't understand where
 the error is coming from in 1.3.0, it almost look like a cpp bug.
 
 cheers,
 
 David



  
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Installing numpy under cygwin

2009-11-27 Thread Olivia Cheronet
Hi,

I have tried to remove my entire numpy directory and starting to build it again 
from a newly downloaded source (numpy-1.3.0.tar.gz), but it has made no 
difference. I still get the output below.

Thank you for the suggestions,

Olivia
...
...
...
creating build/temp.cygwin-1.5.25-i686-2.5
creating build/temp.cygwin-1.5.25-i686-2.5/build
creating build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5
creating 
build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy
creating 
build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core
creating 
build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core/src
compile options: '-Inumpy/core/include 
-Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy -Inumpy/core/src 
-Inumpy/core/include -I/usr/include/python2.5 -c'
gcc: build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c
numpy/core/src/npy_math.c.src:186: error: parse error before '/' token
numpy/core/src/npy_math.c.src:186: error: parse error before '/' token
error: Command gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -Inumpy/core/include 
-Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy -Inumpy/core/src 
-Inumpy/core/include -I/usr/include/python2.5 -c 
build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c -o 
build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.o
 failed with exit status 1



- Original Message 
 
 I have just tested a fresh svn checkout, and could built numpy
 correctly on cygwin. I would suggest you update your sources, and
 build from scratch (i.e. remove the entire build directory and start
 from scratch).
 
 David



  
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Installing numpy under cygwin

2009-11-25 Thread Olivia Cheronet
The crt0.o file was indeed missing. I have reinstalled cygwin from the cygwin 
setup.exe (as it seemed to be included therein), and it seems to have solved 
that.

However, I now get the error below.

Thanks,

Olivia

_

Running from numpy source directory.
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
blas_mkl_info:
  libraries mkl,vml,guide not found in /usr/local/lib
  libraries mkl,vml,guide not found in /usr/lib
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib
  NOT AVAILABLE

atlas_blas_info:
  libraries f77blas,cblas,atlas not found in /usr/local/lib
  libraries f77blas,cblas,atlas not found in /usr/lib
  NOT AVAILABLE

/cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/system_info.py:1383: 
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 /usr/local/lib
  FOUND:
libraries = ['blas']
library_dirs = ['/usr/lib']
language = f77

  FOUND:
libraries = ['blas']
library_dirs = ['/usr/lib']
define_macros = [('NO_ATLAS_INFO', 1)]
language = f77

lapack_opt_info:
lapack_mkl_info:
mkl_info:
  libraries mkl,vml,guide not found in /usr/local/lib
  libraries mkl,vml,guide not found in /usr/lib
  NOT AVAILABLE

  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib
  libraries lapack_atlas not found in /usr/lib
numpy.distutils.system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
  libraries f77blas,cblas,atlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries f77blas,cblas,atlas not found in /usr/lib
  libraries lapack_atlas not found in /usr/lib
numpy.distutils.system_info.atlas_info
  NOT AVAILABLE

/cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/system_info.py:1290: 
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 /usr/local/lib
  FOUND:
libraries = ['lapack']
library_dirs = ['/usr/lib']
language = f77

  FOUND:
libraries = ['lapack', 'blas']
library_dirs = ['/usr/lib']
define_macros = [('NO_ATLAS_INFO', 1)]
language = f77

running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler opt
ions
running build_src
building py_modules sources
building library npymath sources
building extension numpy.core._sort sources
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to
 sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.
h' to sources.
executing numpy/core/code_generators/generate_numpy_api.py
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray
_api.h' to sources.
numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump
y/core/include/numpy/config.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/inc
lude/numpy/numpyconfig.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/
numpy/__multiarray_api.h']
building extension numpy.core.multiarray sources
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to
 sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.
h' to sources.
executing numpy/core/code_generators/generate_numpy_api.py
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray
_api.h' to sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src' to include_dirs.
numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump
y/core/src/scalartypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/ar
raytypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config
.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.h', 
'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray_api.h']
building extension numpy.core.umath sources
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to
 sources.
  adding 

Re: [Numpy-discussion] Installing numpy under cygwin

2009-11-25 Thread Olivia Cheronet
The npy_math.c is attached here.

Cheers,

Olivia


- Original Message 
 On Wed, Nov 25, 2009 at 6:42 PM, Olivia Cheronet
 wrote:
  The crt0.o file was indeed missing. I have reinstalled cygwin from the 
  cygwin 
 setup.exe (as it seemed to be included therein), and it seems to have solved 
 that.
 
  compile options: '-Inumpy/core/include 
 -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/
  core/include/numpy -Inumpy/core/src -Inumpy/core/include 
 -I/usr/include/python2.
  5 -c'
  gcc: build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c
  numpy/core/src/npy_math.c.src:186: error: parse error before '/' token
  numpy/core/src/npy_math.c.src:186: error: parse error before '/' token
  error: Command gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall 
 -Wstrict-
  prototypes -Inumpy/core/include 
 -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/core/in
  clude/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 
  -c 
 bu
  ild/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c -o 
 build/temp.cygwin-1.
  5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.o 
 failed
   with exit status 1
 
 Which version of the trunk are you using ? From the error, it looks
 like a C99-style // comment (which should not be there), but I don't
 see it in the last revision.
 
 Could you put the content of the file
 build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c as well ?
 
 thanks,
 
 David



  #line 1 numpy/core/src/npy_math.c.src

/*
 *
 **   This file was autogenerated from a template  DO NOT EDIT  **
 **   Changes should be made to the original source (.src) file **
 *
 */

#line 1
/*
 * vim:syntax=c
 * A small module to implement missing C99 math capabilities required by numpy
 *
 * Please keep this independant of python ! Only basic types (npy_longdouble)
 * can be used, otherwise, pure C, without any use of Python facilities
 *
 * How to add a function to this section
 * -
 *
 * Say you want to add `foo`, these are the steps and the reasons for them.
 *
 * 1) Add foo to the appropriate list in the configuration system. The
 *lists can be found in numpy/core/setup.py lines 63-105. Read the
 *comments that come with them, they are very helpful.
 *
 * 2) The configuration system will define a macro HAVE_FOO if your function
 *can be linked from the math library. The result can depend on the
 *optimization flags as well as the compiler, so can't be known ahead of
 *time. If the function can't be linked, then either it is absent, defined
 *as a macro, or is an intrinsic (hardware) function.
 *
 *i) Undefine any possible macros:
 *
 *#ifdef foo
 *#undef foo
 *#endif
 *
 *ii) Avoid as much as possible to declare any function here. Declaring
 *functions is not portable: some platforms define some function inline
 *with a non standard identifier, for example, or may put another
 *idendifier which changes the calling convention of the function. If you
 *really have to, ALWAYS declare it for the one platform you are dealing
 *with:
 *
 *Not ok:
 *double exp(double a);
 *
 *Ok:
 *#ifdef SYMBOL_DEFINED_WEIRD_PLATFORM
 *double exp(double);
 *#endif
 */

#include Python.h
#include math.h

#include config.h
#include numpy/npy_math.h

/*
 *
 ** BASIC MATH FUNCTIONS**
 *
 */

/* Original code by Konrad Hinsen.  */
#ifndef HAVE_EXPM1
static double expm1(double x)
{
double u = exp(x);
if (u == 1.0) {
return x;
} else if (u-1.0 == -1.0) {
return -1;
} else {
return (u-1.0) * x/log(u);
}
}
#endif

#ifndef HAVE_LOG1P
static double log1p(double x)
{
double u = 1. + x;
if (u == 1.0) {
return x;
} else {
return log(u) * x / (u - 1);
}
}
#endif

#ifndef HAVE_HYPOT
static double hypot(double x, double y)
{
double yx;

x = fabs(x);
y = fabs(y);
if (x  y) {
double temp = x;
x = y;
y = temp;
}
if (x == 0.)
return 0.;
else {
yx = y/x;
return x*sqrt(1.+yx*yx);
}
}
#endif

#ifndef HAVE_ACOSH
static double acosh(double x)
{
return 2*log(sqrt((x+1.0)/2)+sqrt((x-1.0)/2));
}
#endif

#ifndef HAVE_ASINH
static double asinh(double xx)
{
double x, d;
int sign;
if (xx  0.0) {
sign = -1;
x = -xx;
}
else {
sign = 1;
x = xx;
}
if (x  1e8) {
d = x;
} else {
d = sqrt(x*x + 1);
}
return sign*log1p(x*(1.0 + x/(d+1)));
}
#endif

#ifndef HAVE_ATANH
static

Re: [Numpy-discussion] Installing numpy under cygwin

2009-11-24 Thread Olivia Cheronet
 130, in run
self.build_sources()
  File 
/cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/command/build_src.py,
 line 147, in build_sources
self.build_extension_sources(ext)
  File 
/cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/command/build_src.py,
 line 250, in build_extension_sources
sources = self.generate_sources(sources, ext)
  File 
/cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/command/build_src.py,
 line 307, in generate_sources
source = func(extension, build_dir)
  File numpy/core/setup.py, line 289, in generate_config_h
mathlibs = check_mathlib(config_cmd)
  File numpy/core/setup.py, line 253, in check_mathlib
raise EnvironmentError(math library missing; rerun 
EnvironmentError: math library missing; rerun setup.py after setting the 
MATHLIB env variable

- Original Message 
 Hi Olivia,
 
 On Mon, Nov 23, 2009 at 6:51 AM, Olivia Cheronet
 wrote:
  Hello,
 
   I attempted to install Numpy for my Cygwin python again, by simply 
  executing:
   python setup.py install
 
   However, I now get the following:
   File numpy/core/setup.py, line 253, in check_mathlib
 raise EnvironmentError(math library missing; rerun 
   EnvironmentError: math library missing; rerun setup.py after setting the
   MATHLIB
   env variable
 
 
   I have a math library from cygwin (libm.a), but I have not managed to set 
  it.
 
 The message is misleading (the message is hopefully improved with the
 last trunk), and it is almost always caused by a broken toolchain
 (that is you are missing gcc, or g++, etc...).
 
 It would be helpful to have the full build log to help you better,
 
 David



  
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Installing numpy under cygwin

2009-11-22 Thread Olivia Cheronet
Hello,

 I attempted to install Numpy for my Cygwin python again, by simply executing:
 python setup.py install
 
 However, I now get the following:
 File numpy/core/setup.py, line 253, in check_mathlib
   raise EnvironmentError(math library missing; rerun 
 EnvironmentError: math library missing; rerun setup.py after setting the 
 MATHLIB
 env variable
 
 
 I have a math library from cygwin (libm.a), but I have not managed to set it.
 
 How should I set this?
 
 Thank you for the help,
 
 Olivia
 
 
 - Original Message 
  From: David Cournapeau 
  To: Discussion of Numerical Python 
  Sent: Wed, November 18, 2009 9:01:06 AM
  Subject: Re: [Numpy-discussion] Installing numpy under cygwin
  
  Olivia Cheronet wrote:
   Hello.
  
   I am currently trying to install the latest version of NumPy for my cygwin 
  Python, and I am having problems...
  
   I have downloaded the source, and unzipped and untarred it in my home 
  directory.
   Subsequently, I included the following in the site.cfg file:

   [DEFAULT]
   library_dirs = /cygdrive/c/cygwin/lib
   include_dirs = /cygdrive/c/cygwin/usr/local/include
   [blas_opt]
   libraries = f77blas, cblas, atlas
   [lapack_opt]
   libraries = lapack, f77blas, cblas, atlas
  
  
   In the Cygwin bash shell, after going to my home directory, I have 
   executed:
   python setup.py config --compiler=mingw32 build --compiler=mingw32 install
   as instructed in the Installing SciPy/Windows page.

  
  If you use cygwin, you should not follow the windows instructions. For
  most purposes, cygwin works as unix. In particular, you don't think you
  should not use mingw32 build on cygwin. The -mno-cygwin flag appended to
  gcc is most likely coming from there, and this looks very wrong for a
  cygwin build.
  
  David
  ___
  NumPy-Discussion mailing list
  NumPy-Discussion@scipy.org
  http://mail.scipy.org/mailman/listinfo/numpy-discussion



  
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] Installing numpy under cygwin

2009-11-18 Thread Olivia Cheronet
Hello.

I am currently trying to install the latest version of NumPy for my cygwin 
Python, and I am having problems...

I have downloaded the source, and unzipped and untarred it in my home directory.
Subsequently, I included the following in the site.cfg file:
[DEFAULT]
library_dirs = /cygdrive/c/cygwin/lib
include_dirs = /cygdrive/c/cygwin/usr/local/include
[blas_opt]
libraries = f77blas, cblas, atlas
[lapack_opt]
libraries = lapack, f77blas, cblas, atlas

In the Cygwin bash shell, after going to my home directory, I have executed:
python setup.py config --compiler=mingw32 build --compiler=mingw32 install
as instructed in the Installing SciPy/Windows page.

The result is the following:

error: Command gcc -mno-cygwin -mdll -O -Wall -Inumpy/core/include -Ibuild/src.
cygwin-1.5.25-i686-2.5/numpy/core/include/numpy -Inumpy/core/src -Inumpy/core/in
clude -I/usr/include/python2.5 -c build/src.cygwin-1.5.25-i686-2.5/numpy/core/sr
c/npy_math.c -o build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2
.5/numpy/core/src/npy_math.o failed with exit status 1

I have included below the complete output (and error) I get.

What could be the problem?

Thank you,

Olivia
==

  libraries lapack_atlas not found in /cygdrive/c/cygwin/lib
numpy.distutils.system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
  libraries f77blas,cblas,atlas not found in /cygdrive/c/cygwin/lib
  libraries lapack_atlas not found in /cygdrive/c/cygwin/lib
numpy.distutils.system_info.atlas_info
  NOT AVAILABLE

/cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/system_info.py:1290:
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:
  FOUND:
libraries = ['lapack']
library_dirs = ['/cygdrive/c/cygwin/lib']
language = f77

  FOUND:
libraries = ['lapack', 'blas']
library_dirs = ['/cygdrive/c/cygwin/lib']
define_macros = [('NO_ATLAS_INFO', 1)]
language = f77

running config
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler opt
ions
running build_src
building py_modules sources
building library npymath sources
building extension numpy.core._sort sources
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to
 sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.
h' to sources.
executing numpy/core/code_generators/generate_numpy_api.py
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray
_api.h' to sources.
numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump
y/core/include/numpy/config.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/inc
lude/numpy/numpyconfig.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/
numpy/__multiarray_api.h']
building extension numpy.core.multiarray sources
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to
 sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.
h' to sources.
executing numpy/core/code_generators/generate_numpy_api.py
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray
_api.h' to sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src' to include_dirs.
numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump
y/core/src/scalartypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/ar
raytypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config
.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.h',
'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray_api.h']
building extension numpy.core.umath sources
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to
 sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.
h' to sources.
executing numpy/core/code_generators/generate_ufunc_api.py
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__ufunc_api.
h' to sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src' to include_dirs.
numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump
y/core/src/scalartypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/ar
raytypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/umath_funcs.inc'
, 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/umath_loops.inc', 'build/src.
cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h', 'build/src.cygwin-1.5

Re: [Numpy-discussion] Installing numpy under cygwin

2009-11-18 Thread Olivia Cheronet
Hi,

I have started again, simply executing:
python setup.py install

However, I now get the following:
File numpy/core/setup.py, line 253, in check_mathlib
  raise EnvironmentError(math library missing; rerun 
EnvironmentError: math library missing; rerun setup.py after setting the 
MATHLIB
env variable


I have a math library from cygwin (libm.a).

How should I set this?

Thank you,

Olivia


- Original Message 
 From: David Cournapeau da...@ar.media.kyoto-u.ac.jp
 To: Discussion of Numerical Python numpy-discussion@scipy.org
 Sent: Wed, November 18, 2009 9:01:06 AM
 Subject: Re: [Numpy-discussion] Installing numpy under cygwin
 
 Olivia Cheronet wrote:
  Hello.
 
  I am currently trying to install the latest version of NumPy for my cygwin 
 Python, and I am having problems...
 
  I have downloaded the source, and unzipped and untarred it in my home 
 directory.
  Subsequently, I included the following in the site.cfg file:
   
  [DEFAULT]
  library_dirs = /cygdrive/c/cygwin/lib
  include_dirs = /cygdrive/c/cygwin/usr/local/include
  [blas_opt]
  libraries = f77blas, cblas, atlas
  [lapack_opt]
  libraries = lapack, f77blas, cblas, atlas
 
 
  In the Cygwin bash shell, after going to my home directory, I have executed:
  python setup.py config --compiler=mingw32 build --compiler=mingw32 install
  as instructed in the Installing SciPy/Windows page.
   
 
 If you use cygwin, you should not follow the windows instructions. For
 most purposes, cygwin works as unix. In particular, you don't think you
 should not use mingw32 build on cygwin. The -mno-cygwin flag appended to
 gcc is most likely coming from there, and this looks very wrong for a
 cygwin build.
 
 David
 ___
 NumPy-Discussion mailing list
 NumPy-Discussion@scipy.org
 http://mail.scipy.org/mailman/listinfo/numpy-discussion



  
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion