[SciPy-user] Problem building scipy from source

Marco Lui saffsd@gmail....
Mon Jun 15 08:54:07 CDT 2009


Hello everyone

I have followed the instructions at

http://scipy.org/Installing_SciPy/BuildingGeneral

I have successfully built BLAS and LAPACK, but the build for scipy itself
fails as follows:

building extension "scipy.optimize._lbfgsb" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.5/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.5' to include_dirs.
building extension "scipy.optimize.moduleTNC" sources
building extension "scipy.optimize._cobyla" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.5/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.5' to include_dirs.
building extension "scipy.optimize.minpack2" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.5/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.5' to include_dirs.
building extension "scipy.optimize._slsqp" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.5/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.5' to include_dirs.
building extension "scipy.optimize._nnls" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.5/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.5' to include_dirs.
building extension "scipy.signal.sigtools" sources
conv_template:> build/src.linux-x86_64-2.5/scipy/signal/lfilter.inc
Traceback (most recent call last):
  File "setup.py", line 160, in <module>
    setup_package()
  File "setup.py", line 152, in setup_package
    configuration=configuration )
  File "/usr/lib/python2.5/site-packages/numpy/distutils/core.py", line 176,
in setup
    return old_setup(**new_attr)
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/distutils/command/build.py", line 113, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File
"/usr/lib/python2.5/site-packages/numpy/distutils/command/build_src.py",
line 130, in run
    self.build_sources()
  File
"/usr/lib/python2.5/site-packages/numpy/distutils/command/build_src.py",
line 147, in build_sources
    self.build_extension_sources(ext)
  File
"/usr/lib/python2.5/site-packages/numpy/distutils/command/build_src.py",
line 252, in build_extension_sources
    sources = self.template_sources(sources, ext)
  File
"/usr/lib/python2.5/site-packages/numpy/distutils/command/build_src.py",
line 359, in template_sources
    outstr = process_c_file(source)
  File "/usr/lib/python2.5/site-packages/numpy/distutils/conv_template.py",
line 185, in process_file
    % (sourcefile, process_str(''.join(lines))))
  File "/usr/lib/python2.5/site-packages/numpy/distutils/conv_template.py",
line 150, in process_str
    newstr[sub[0]:sub[1]], sub[4])
  File "/usr/lib/python2.5/site-packages/numpy/distutils/conv_template.py",
line 114, in expand_sub
    for k in range(numsubs):
TypeError: range() integer end argument expected, got NoneType.

The underlying system is an installation of Ubuntu Hardy with Python 2.5.2.
Any suggestions are much appreciated.

Thank you,
Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20090615/6e3e6f39/attachment.html 


More information about the SciPy-user mailing list