Topics

[users] pip install numpy

Alex Earl
 

Sadly, numpy uses native C implementations of some of the functionality, so it will not work with IronPython.


On Thu, Oct 11, 2018, 18:32 <alex-st@...> wrote:
I am struggling to install numpy package, getting an obscure TypeError: a new-style class can't have only classic bases.
ironpython v2.7.8 / v2.7.9
numpy versions 1.10.4 .. 1.15.2

anyone seen anything like this before? a bug or feature? 

thanks!
----

ipy32 -X:Frames -m pip install numpy
Collecting numpy
Installing collected packages: numpy
  Running setup.py install for numpy ... error
    Complete output from command "C:\Program Files\IronPython 2.7\ipy32.exe" -u -c "import setuptools, tokenize;__file__='c:\\users\\usr1\\appdata\\local\\temp\\pip-build-baacrw\\numpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\usr1\appdata\local\temp\pip-mc6g15-record\install-record.txt --single-version-externally-managed --compile:
    Running from numpy source directory.
 
    Note: if you need reliable uninstall behavior, then install
    with pip instead of using `setup.py install`:
 
      - `pip install .`       (from a git repo or downloaded source
                               release)
      - `pip install numpy`   (last NumPy release on PyPi)
 
 
    C:\Program Files\IronPython 2.7\Lib\distutils\dist.py:1: UserWarning: Unknown distribution option: 'python_requires'
      """distutils.dist
    blas_opt_info:
    blas_mkl_info:
    customize MSVCCompiler
      libraries mkl_rt not found in ['C:\\Program Files\\IronPython 2.7\\lib']
      NOT AVAILABLE
 
    blis_info:
    customize MSVCCompiler
      libraries blis not found in ['C:\\Program Files\\IronPython 2.7\\lib']
      NOT AVAILABLE
 
    openblas_info:
    customize MSVCCompiler
    customize MSVCCompiler
      libraries openblas not found in ['C:\\Program Files\\IronPython 2.7\\lib']
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\setup.py", line 403, in <module>
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\core.py", line 135, in setup
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\system_info.py", line 625, in get_info
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\system_info.py", line 433, in get_info
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\system_info.py", line 625, in get_info
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\system_info.py", line 1758, in calc_info
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\fcompiler\__init__.py", line 61, in <module>
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\setup.py", line 395, in setup_package
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\setup.py", line 167, in configuration
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\misc_util.py", line 1032, in add_subpackage
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\misc_util.py", line 998, in get_subpackage
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\misc_util.py", line 940, in _get_configuration_from_setup_py
      File "numpy\setup.py", line 10, in configuration
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\misc_util.py", line 1032, in add_subpackage
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\misc_util.py", line 998, in get_subpackage
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\misc_util.py", line 940, in _get_configuration_from_setup_py
      File "numpy\core\setup.py", line 832, in configuration
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\system_info.py", line 433, in get_info
      File "c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\numpy\distutils\system_info.py", line 1621, in calc_info
    TypeError: a new-style class can't have only classic bases
 
    ----------------------------------------
Command ""C:\Program Files\IronPython 2.7\ipy32.exe" -u -c "import setuptools, tokenize;__file__='c:\\users\\usr1\\appdata\\local\\temp\\pip-build-baacrw\\numpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\usr1\appdata\local\temp\pip-mc6g15-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\usr1\appdata\local\temp\pip-build-baacrw\numpy\
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.