[SciPy-user] OS x 10.5 Problems with Scipy Installation

Graham Enos graham.enos@gmail....
Wed May 13 11:40:58 CDT 2009


Hey all,

I'm trying to install scipy today, and am having trouble on my intel  
macbook. I installed numpy, but scipy doesn't wanna go.

Relevant details:

OS X version 10.5
gcc version 4.2.1
gfortran version 4.2.3

I exported MACOSX_DEPLOYMENT_TARGET=10.5

and then ran py2.5 setup.py build_src build_clib --fcompiler=gfortran  
build_ext --fcompiler=gfortran build

(py2.5 is my .bash_profile alias for python version 2.5.1)

and got the following traceback (and previous lines of info):

running build_src
building py_modules sources
building library "dfftpack" sources
building library "fftpack" sources
building library "linpack_lite" sources
building library "mach" sources
building library "quadpack" sources
building library "odepack" sources
building library "dop" sources
building library "fitpack" sources
building library "odrpack" sources
building library "minpack" sources
building library "rootfind" sources
building library "superlu_src" sources
building library "arpack" sources
building library "sc_c_misc" sources
building library "sc_cephes" sources
building library "sc_mach" sources
building library "sc_toms" sources
building library "sc_amos" sources
building library "sc_cdf" sources
building library "sc_specfun" sources
building library "statlib" sources
building extension "scipy.cluster._vq" sources
building extension "scipy.cluster._hierarchy_wrap" sources
building extension "scipy.fftpack._fftpack" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.fftpack.convolve" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.integrate._quadpack" sources
building extension "scipy.integrate._odepack" sources
building extension "scipy.integrate.vode" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.integrate.dop" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.interpolate._fitpack" sources
building extension "scipy.interpolate.dfitpack" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
   adding 'build/src.macosx-10.5-i386-2.5/scipy/interpolate/src/ 
dfitpack-f2pywrappers.f' to sources.
building extension "scipy.interpolate._interpolate" sources
building extension "scipy.io.numpyio" sources
building extension "scipy.lib.blas.fblas" sources
f2py options: ['skip:', ':']
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
   adding 'build/src.macosx-10.5-i386-2.5/build/src.macosx-10.5- 
i386-2.5/scipy/lib/blas/fblas-f2pywrappers.f' to sources.
building extension "scipy.lib.blas.cblas" sources
   adding 'build/src.macosx-10.5-i386-2.5/scipy/lib/blas/cblas.pyf' to  
sources.
f2py options: ['skip:', ':']
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.lib.lapack.flapack" sources
f2py options: ['skip:', ':']
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.lib.lapack.clapack" sources
   adding 'build/src.macosx-10.5-i386-2.5/scipy/lib/lapack/ 
clapack.pyf' to sources.
f2py options: ['skip:', ':']
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.lib.lapack.calc_lwork" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.lib.lapack.atlas_version" sources
building extension "scipy.linalg.fblas" sources
   adding 'build/src.macosx-10.5-i386-2.5/scipy/linalg/fblas.pyf' to  
sources.
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
   adding 'build/src.macosx-10.5-i386-2.5/build/src.macosx-10.5- 
i386-2.5/scipy/linalg/fblas-f2pywrappers.f' to sources.
building extension "scipy.linalg.cblas" sources
   adding 'build/src.macosx-10.5-i386-2.5/scipy/linalg/cblas.pyf' to  
sources.
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.linalg.flapack" sources
   adding 'build/src.macosx-10.5-i386-2.5/scipy/linalg/flapack.pyf' to  
sources.
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
   adding 'build/src.macosx-10.5-i386-2.5/build/src.macosx-10.5- 
i386-2.5/scipy/linalg/flapack-f2pywrappers.f' to sources.
building extension "scipy.linalg.clapack" sources
   adding 'build/src.macosx-10.5-i386-2.5/scipy/linalg/clapack.pyf' to  
sources.
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.linalg._flinalg" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.linalg.calc_lwork" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.linalg.atlas_version" sources
building extension "scipy.odr.__odrpack" sources
building extension "scipy.optimize._minpack" sources
building extension "scipy.optimize._zeros" sources
building extension "scipy.optimize._lbfgsb" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.optimize.moduleTNC" sources
building extension "scipy.optimize._cobyla" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.optimize.minpack2" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.optimize._slsqp" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.optimize._nnls" sources
f2py options: []
   adding 'build/src.macosx-10.5-i386-2.5/fortranobject.c' to sources.
   adding 'build/src.macosx-10.5-i386-2.5' to include_dirs.
building extension "scipy.signal.sigtools" sources
conv_template:> build/src.macosx-10.5-i386-2.5/scipy/signal/lfilter.inc
Traceback (most recent call last):
   File "setup.py", line 158, in <module>
     setup_package()
   File "setup.py", line 150, in setup_package
     configuration=configuration )
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/core.py", line 174, in setup
     return old_setup(**new_attr)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/core.py", line 151, in setup
     dist.run_commands()
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/dist.py", line 974, in run_commands
     self.run_command(cmd)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/dist.py", line 994, in run_command
     cmd_obj.run()
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/command/build_src.py", line 87, in run
     self.build_sources()
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/command/build_src.py", line 106, in  
build_sources
     self.build_extension_sources(ext)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/command/build_src.py", line 214, in  
build_extension_sources
     sources = self.template_sources(sources, ext)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/command/build_src.py", line 322, in  
template_sources
     outstr = process_c_file(source)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/conv_template.py", line 191, in  
process_file
     % (sourcefile, process_str(''.join(lines))))
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/conv_template.py", line 156, in  
process_str
     newstr[sub[0]:sub[1]], sub[4])
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/conv_template.py", line 120, in  
expand_sub
     for k in range(numsubs):
TypeError: range() integer end argument expected, got NoneType.



Looks like build_src is failing for some reason, though I don't know  
why. Any help would be greatly appreciated!

Thanks,
Graham


More information about the SciPy-user mailing list