[pypy-issue] Issue #2220: can't install numpy: AttributeError: 'FFI' object has no attribute 'set_source' (pypy/pypy)

jiamo issues-reply at bitbucket.org
Thu Dec 31 04:36:05 EST 2015


New issue 2220: can't install numpy:   AttributeError: 'FFI' object has no attribute 'set_source'
https://bitbucket.org/pypy/pypy/issues/2220/cant-install-numpy-attributeerror-ffi

jiamo:

Follow the offical guide to install numpy:

```
#!shell
git clone https://bitbucket.org/pypy/numpy.git
cd numpy
pypy setup.py install


C:\numpy>pypy setup.py install
Running from numpy source directory.
D:\Program Files (x86)\pypy3-2.4.0-win32\lib-python\3\distutils\dist.py:257: UserWarning: Unknown distribution option: 'test
  warnings.warn(msg)
blas_opt_info:
blas_mkl_info:
  libraries mkl,vml,guide not found in ['C:\\']
  NOT AVAILABLE

openblas_info:
  libraries openblas not found in ['C:\\']
  NOT AVAILABLE

atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries tatlas not found in ['C:\\']
  NOT AVAILABLE

atlas_3_10_blas_info:
  libraries satlas not found in ['C:\\']
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in ['C:\\']
  NOT AVAILABLE

atlas_blas_info:
  libraries f77blas,cblas,atlas not found in ['C:\\']
  NOT AVAILABLE

C:\Users\ikfb\numpy\numpy\distutils\system_info.py:1651: UserWarning:
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
blas_info:
  libraries blas not found in ['C:\\']
  NOT AVAILABLE

C:\Users\ikfb\numpy\numpy\distutils\system_info.py:1660: UserWarning:
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.
  warnings.warn(BlasNotFoundError.__doc__)
blas_src_info:
  NOT AVAILABLE

C:\Users\ikfb\numpy\numpy\distutils\system_info.py:1663: UserWarning:
    Blas (http://www.netlib.org/blas/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [blas_src]) or by setting
    the BLAS_SRC environment variable.
  warnings.warn(BlasSrcNotFoundError.__doc__)
  NOT AVAILABLE

non-existing path in 'numpy\\distutils': 'site.cfg'
F2PY Version 2
Traceback (most recent call last):
  File "setup.py", line 278, in <module>
    setup_package()
  File "setup.py", line 270, in setup_package
    setup(**metadata)
  File "C:\Users\ikfb\numpy\numpy\distutils\core.py", line 135, in setup
    config = configuration()
  File "setup.py", line 171, in configuration
    config.add_subpackage('numpy')
  File "C:\Users\ikfb\numpy\numpy\distutils\misc_util.py", line 1001, in add_subpackage
    caller_level = 2)
  File "C:\Users\ikfb\numpy\numpy\distutils\misc_util.py", line 970, in get_subpackage
    caller_level = caller_level + 1)
  File "C:\Users\ikfb\numpy\numpy\distutils\misc_util.py", line 907, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "numpy\setup.py", line 15, in configuration
    config.add_subpackage('fft')
  File "C:\Users\ikfb\numpy\numpy\distutils\misc_util.py", line 1001, in add_subpackage
    caller_level = 2)
  File "C:\Users\ikfb\numpy\numpy\distutils\misc_util.py", line 970, in get_subpackage
    caller_level = caller_level + 1)
  File "C:\Users\ikfb\numpy\numpy\distutils\misc_util.py", line 907, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "numpy\fft\setup.py", line 17, in configuration
    from _fft_build import ffi
  File "numpy\fft\_fft_build.py", line 15, in <module>
    ffi.set_source('numpy.fft._fft_cffi', '''
AttributeError: 'FFI' object has no attribute 'set_source'
```




More information about the pypy-issue mailing list