[SciPy-dev] Building SciPy: breaks when looking for get_info function

Kevin Dunn kgdunn@gmail....
Tue Sep 22 14:07:18 CDT 2009


Hi there,

This is my first attempt at building SciPy; I'm doing this to solve a
problem described in another posting here today with subject
"Bug/Error with chi-squared distribution and df<1"

Background: I'm using Ubuntu 9.04, I've built and installed Numpy
successfully from SVN this afternoon.   Other details about my
platform, as requested by INSTALL.TXT, are available at
http://pastebin.com/m26f8d1d1

Now I'm trying to build and install SciPy from SVN as well, but I get
the following traceback regarding the `get_info` function when I call:
python setup.py build

When inspecting the ./scipy/special/setup.py file I notice it is
trying to import get_info, however, `get_info` is from
/numpy/distutils/misc_util.py where it exists only as a method of the
Configuration class, not as a stand-alone function.  I'm not sure how
to proceed from here.  Any advice?

Thanks,
Kevin
----
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.6/dist-packages/numpy/distutils/core.py",
line 122, in setup
    return setup(**attr)
  File "/usr/lib/python2.6/dist-packages/numpy/distutils/core.py",
line 150, in setup
    config = configuration()
  File "setup.py", line 118, in configuration
    config.add_subpackage('scipy')
  File "/usr/lib/python2.6/dist-packages/numpy/distutils/misc_util.py",
line 851, in add_subpackage
    caller_level = 2)
  File "/usr/lib/python2.6/dist-packages/numpy/distutils/misc_util.py",
line 834, in get_subpackage
    caller_level = caller_level + 1)
  File "/usr/lib/python2.6/dist-packages/numpy/distutils/misc_util.py",
line 781, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/setup.py", line 20, in configuration
    config.add_subpackage('special')
  File "/usr/lib/python2.6/dist-packages/numpy/distutils/misc_util.py",
line 851, in add_subpackage
    caller_level = 2)
  File "/usr/lib/python2.6/dist-packages/numpy/distutils/misc_util.py",
line 834, in get_subpackage
    caller_level = caller_level + 1)
  File "/usr/lib/python2.6/dist-packages/numpy/distutils/misc_util.py",
line 766, in _get_configuration_from_setup_py
    ('.py', 'U', 1))
  File "scipy/special/setup.py", line 7, in <module>
    from numpy.distutils.misc_util import get_numpy_include_dirs, get_info
ImportError: cannot import name get_info


More information about the Scipy-dev mailing list