[Numpy-discussion] problem installing numpy using scons

Hoyt Koepke hoytak@cs.ubc...
Sat Oct 18 18:06:14 CDT 2008


I'm trying to install the latest numpy using setupscons.py, but it
gives me an error that I can't track down.  It's in the latest numpy
release (5946). with the latest numpyscons from the 0.9.3 branch.

Here's the last part of output:

is bootstrapping ? True
Executing scons command (pkg is numpy.core): /usr/local2/bin/python
-f numpy/core/SConstruct -I. scons_tool_path="" src_dir="numpy/core"
pkg_name="numpy.core" log_level=50
distutils_libdir="../../../../build/lib.linux-x86_64-2.5" cc_opt=gcc
cc_opt_path="/usr/bin" f77_opt=gfortran f77_opt_path="/usr/bin"
cxx_opt=g++ cxx_opt_path="/usr/bin"
include_bootstrap=../../../../numpy/core/include silent=0
scons: Reading SConscript files ...
Checking for C header file Python.h... yes
Checking size of short ... yes
Checking size of int ... yes
Checking size of long ... yes
Checking size of float ... yes
Checking size of double ... yes
Checking size of long double ... yes
Checking size of Py_intptr_t ... yes
Checking whether PY_LONG_LONG is declared... yes
Checking size of PY_LONG_LONG ... yes
Checking whether CHAR_BIT is declared... yes
Checking whether PRIdPTR is declared... yes
Checking if math lib [] is usable for numpy ...  No !
Checking for C library m... yes
Checking if math lib ['m'] is usable for numpy ...  Yes !
AttributeError: SConfBase instance has no attribute 'CheckFuncsAtOnce':
  File "/usr/local2/src/numpy/numpy/core/SConstruct", line 2:
  File "/usr/local2/lib/python2.5/site-packages/numscons-0.9.3dev-py2.5.egg/numscons/core/numpyenv.py",
line 108:
    build_dir = '$build_dir', src_dir = '$src_dir')
  File "/usr/local2/lib/python2.5/site-packages/numscons-0.9.3dev-py2.5.egg/numscons/scons-local/scons-local-1.0.1/SCons/Script/SConscript.py",
line 533:
    return apply(_SConscript, [self.fs,] + files, subst_kw)
  File "/usr/local2/lib/python2.5/site-packages/numscons-0.9.3dev-py2.5.egg/numscons/scons-local/scons-local-1.0.1/SCons/Script/SConscript.py",
line 256:
    exec _file_ in call_stack[-1].globals
  File "/usr/local2/src/numpy/build/scons/numpy/core/SConscript", line 165:
  File "/usr/local2/src/numpy/build/scons/numpy/core/SConscript", line 154:
    st = config.CheckFuncsAtOnce(funcs)
error: Error while executing scons command. See above for more information.
If you think it is a problem in numscons, you can also try executing the scons
command with --log-level option for more detailed output of what numscons is
doing, for example --log-level=0; the lowest the level is, the more detailed
the output it.

I'm trying to install it on a 8 processor 64 bit Intel machine.  I
could post more details of the installation if needed, but they don't
seem relevant here (except that I've had a lot of issues getting the
regular install script to work with the correct compile parameters,
and so I thought I'd try scons).

If there's something I'm doing wrong, let me know; otherwise I'd be
happy to post a bug report.


More information about the Numpy-discussion mailing list