[SciPy-user] os x error on import

John Hunter jdhunter at ace.bsd.uchicago.edu
Tue Mar 9 06:50:40 CST 2004


I am building CVS scipy on OS X 10.3.  The build goes fine, and I can
import scipy, or do "from scipy import array" w/o problems.  I can
"import scipy.signal" but if I do "help(scipy.signal)" or "from
scipy.signal import buttord" I get 

  Fatal Python error: Interpreter not initialized (version mismatch?)
  Abort

I have python compiled from src in /usr/local/lib/python2.3 and the
python framework is also installed.  I wonder if the message is
arising from the build using part of the framework when I just want to
be using the python from src.

>From the CVS root, I built scipy with

 > cd scipy_core
 > sudo python setup.py install # uses /usr/local/bin/python2.3
 > cd ..
 > sudo python setup.py install

Below is the head of the setup output; if anyone has any suggestions
I'm much obliged.

Thanks!
John Hunter

numpy_info:
  FOUND:
    define_macros = [('NUMERIC_VERSION', '"\\"23.1\\""')]
    include_dirs = ['/usr/local/include/python2.3']

SciPy Core Version 0.2.2_alpha_104.1544
****************************************************************
    Using fortran_libraries setup option is depreciated
    ---------------------------------------------------
    Use libraries option instead. Yes, scipy_distutils
    now supports Fortran sources in libraries.
****************************************************************
running install
running build
running config_fc
running build_src
building extension "scipy_base.fastumath" sources
  adding 'scipy_base/fastumathmodule.c' to sources.
building extension "scipy_base._compiled_base" sources
running build_py
package init file '/Users/jdhunter/python/src/scipy/scipy_core/scipy_distutils/tests/__init__.py' not found (or not a regular file)
package init file '/Users/jdhunter/python/src/scipy/scipy_core/scipy_base/tests/__init__.py' not found (or not a regular file)
package init file 'weave/tests/__init__.py' not found (or not a regular file)
package init file 'weave/tests/__init__.py' not found (or not a regular file)
package init file '/Users/jdhunter/python/src/scipy/scipy_core/scipy_distutils/tests/__init__.py' not found (or not a regular file)
package init file '/Users/jdhunter/python/src/scipy/scipy_core/scipy_base/tests/__init__.py' not found (or not a regular file)
package init file 'weave/tests/__init__.py' not found (or not a regular file)
package init file 'weave/tests/__init__.py' not found (or not a regular file)
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
distutils.unixccompiler.UnixCCompiler does not provide version_cmd and version_pattern attributes
********************************************************************************
distutils.unixccompiler.UnixCCompiler
compiler_cxx  = ['c++']
ranlib        = ['ranlib']
linker_exe    = ['gcc']
compiler_so   = ['gcc', '-fno-strict-aliasing', '-Wno-long-double', '-no-cpp-precomp', '-mno-fused-madd', '-DNDEBUG', '-g', '-O3', '-Wall', '-Wstrict-prototypes']
archiver      = ['ar', '-cr']
preprocessor  = ['gcc', '-E']
linker_so     = ['gcc', '-bundle', '-bundle_loader', '/usr/local/bin/python2.3']
compiler      = ['gcc', '-fno-strict-aliasing', '-Wno-long-double', '-no-cpp-precomp', '-mno-fused-madd', '-DNDEBUG', '-g', '-O3', '-Wall', '-Wstrict-prototypes']
libraries     = []
library_dirs  = []
include_dirs  = ['/usr/local/include/python2.3']
********************************************************************************
running install_lib
running install_data
/usr/local/bin/python2.3 /Users/jdhunter/python/src/scipy/scipy_core/setup.py install
fftw_info:
  NOT AVAILABLE

dfftw_info:
  NOT AVAILABLE


    FFTW (http://www.fftw.org/) libraries not found.
    Directories to search for the libraries can be specified in the
    scipy_distutils/site.cfg file (section [fftw]) or by setting
    the FFTW environment variable.
djbfft_info:
  NOT AVAILABLE


    DJBFFT (http://cr.yp.to/djbfft.html) libraries not found.
    Directories to search for the libraries can be specified in the
    scipy_distutils/site.cfg file (section [djbfft]) or by setting
    the DJBFFT environment variable.
blas_opt_info:
  FOUND:
    extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
    define_macros = [('NO_ATLAS_INFO', 3)]
    extra_compile_args = ['-faltivec', '-framework', 'Accelerate']

lapack_opt_info:
  FOUND:
    extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
    define_macros = [('NO_ATLAS_INFO', 3)]
    extra_compile_args = ['-faltivec', '-framework', 'Accelerate']

creating build
creating build/temp.darwin-7.2.0-Power_Macintosh-2.3
creating build/temp.darwin-7.2.0-Power_Macintosh-2.3/config_pygist
  ============= begin top level configuration =============
compiling '_configtest.c':
/* check whether libm is broken */
#include <math.h>
int main(int argc, char *argv[])
{
  return exp(-720.) > 1.0;  /* typically an IEEE denormal */
}
gcc options: '-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes'
compile options: '-c'
gcc: _configtest.c
gcc _configtest.o -lm -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
compiling '_configtest.c':
/* check whether libm is broken */
#include <math.h>
int main(int argc, char *argv[])
{
  return exp(-720.) > 1.0;  /* typically an IEEE denormal */
}



More information about the SciPy-user mailing list