[SciPy-Dev] ImportError: cannot import name oldnumeric

xavier.gnata@gmai... xavier.gnata@gmai...
Sun Sep 29 17:46:07 CDT 2013


On 29/09/2013 23:01, Ralf Gommers wrote:
>
>
>
> On Sun, Sep 29, 2013 at 10:59 PM, xavier.gnata@gmail.com 
> <mailto:xavier.gnata@gmail.com> <xavier.gnata@gmail.com 
> <mailto:xavier.gnata@gmail.com>> wrote:
>
>     Hi,
>
>     I have compiled numpy1.9.0.dev-e051ff following
>     http://osdf.github.io/blog/numpyscipy-with-openblas-for-ubuntu-1204-second-try.html
>     to unable Openblas. It looks ok (run=5277 errors=0 failures=0 and
>     Openblas is used) but now scipy git complains like this:
>
>     "python setup.py build
>     Cythonizing sources
>     scipy/interpolate/interpnd.pyx has not changed
>     scipy/ndimage/src/_ni_label.pyx has not changed
>     scipy/stats/vonmises_cython.pyx has not changed
>     scipy/stats/_rank.pyx has not changed
>     scipy/signal/_spectral.pyx has not changed
>     scipy/special/_ufuncs_cxx.pyx has not changed
>     scipy/special/_ufuncs.pyx has not changed
>     scipy/cluster/_vq_rewrite.pyx has not changed
>     scipy/sparse/csgraph/_shortest_path.pyx has not changed
>     scipy/sparse/csgraph/_traversal.pyx has not changed
>     scipy/sparse/csgraph/_min_spanning_tree.pyx has not changed
>     scipy/sparse/csgraph/_tools.pyx has not changed
>     scipy/io/matlab/mio5_utils.pyx has not changed
>     scipy/io/matlab/mio_utils.pyx has not changed
>     scipy/io/matlab/streams.pyx has not changed
>     scipy/spatial/ckdtree.pyx has not changed
>     scipy/spatial/qhull.pyx has not changed
>     /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
>     distribution option: 'test_suite'
>        warnings.warn(msg)
>     blas_opt_info:
>     blas_mkl_info:
>     Disabled blas_mkl_info: (MKL is None)
>     Disabled blas_mkl_info: (MKL is None)
>        libraries mkl,vml,guide not found in []
>        NOT AVAILABLE
>
>     openblas_info:
>        FOUND:
>          libraries = ['openblas']
>          library_dirs = ['/usr/local/lib']
>          language = f77
>
>        FOUND:
>          libraries = ['openblas']
>          library_dirs = ['/usr/local/lib']
>          language = f77
>
>     Traceback (most recent call last):
>        File "setup.py", line 230, in <module>
>          setup_package()
>        File "setup.py", line 227, in setup_package
>          setup(**metadata)
>        File
>     "/usr/local/lib/python2.7/dist-packages/numpy/distutils/core.py", line
>     135, in setup
>          config = configuration()
>        File "setup.py", line 170, in configuration
>          config.add_subpackage('scipy')
>        File
>     "/usr/local/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>     line 966, in add_subpackage
>          caller_level = 2)
>        File
>     "/usr/local/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>     line 935, in get_subpackage
>          caller_level = caller_level + 1)
>        File
>     "/usr/local/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>     line 872, in _get_configuration_from_setup_py
>          config = setup_module.configuration(*args)
>        File "scipy/setup.py", line 15, in configuration
>          config.add_subpackage('lib')
>        File
>     "/usr/local/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>     line 966, in add_subpackage
>          caller_level = 2)
>        File
>     "/usr/local/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>     line 935, in get_subpackage
>          caller_level = caller_level + 1)
>        File
>     "/usr/local/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>     line 872, in _get_configuration_from_setup_py
>          config = setup_module.configuration(*args)
>        File "scipy/lib/setup.py", line 9, in configuration
>          config.add_subpackage('blas')
>        File
>     "/usr/local/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>     line 966, in add_subpackage
>          caller_level = 2)
>        File
>     "/usr/local/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>     line 935, in get_subpackage
>          caller_level = caller_level + 1)
>        File
>     "/usr/local/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>     line 872, in _get_configuration_from_setup_py
>          config = setup_module.configuration(*args)
>        File "scipy/lib/blas/setup.py", line 22, in configuration
>          from scipy._build_utils import get_g77_abi_wrappers
>        File "/usr/local/src/scipy/scipy/__init__.py", line 77, in <module>
>          from numpy import oldnumeric
>     ImportError: cannot import name oldnumeric
>     "
>
>     What's going on with oldnumeric?
>
>
> You just picked a bad day to update numpy. See 
> https://github.com/numpy/numpy/pull/3638 for a 1-line workaround. 
> Should be fixed in numpy master soon.
>
> Ralf

OK sorry for the noise.

xavier


More information about the SciPy-Dev mailing list