Building Numpy package fails with TypeError: __init__() takes from 3 to 4 positional arguments but 13 were given
See original GitHub issueI’m trying in build Numpy on Ubuntu Server Xenial (Armbian 5.14). I have installed libexpat1-dev
, libpython3-dev
, libpython3.5-dev
, python3-dev
, python3.5-dev
, build-essential
, gcc
, gfortran
, gfortran-5
, libgfortran-5-dev
, libgfortran3
, libblas-common
, libblas-dev
, libblas3
, libopenblas-base
, libopenblas-dev
, cython
, libpng-dev
. Cloned git repo to a dir and ran python3 setup.py build
. Here’s the log:
$ python3 setup.py build
Running from numpy source directory.
Cythonizing sources
numpy/random/mtrand/mtrand.pyx has not changed
Traceback (most recent call last):
File "setup.py", line 390, in <module>
setup_package()
File "setup.py", line 382, in setup_package
setup(**metadata)
File "/home/odroid/downloads/numpy/numpy/distutils/core.py", line 135, in setup config = configuration()
File "setup.py", line 165, in configuration
config.add_subpackage('numpy')
File "/home/odroid/downloads/numpy/numpy/distutils/misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "/home/odroid/downloads/numpy/numpy/distutils/misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "/home/odroid/downloads/numpy/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy/setup.py", line 10, in configuration
config.add_subpackage('core')
File "/home/odroid/downloads/numpy/numpy/distutils/misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "/home/odroid/downloads/numpy/numpy/distutils/misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "/home/odroid/downloads/numpy/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy/core/setup.py", line 638, in configuration generate_numpy_api]
File "/home/odroid/downloads/numpy/numpy/distutils/misc_util.py", line 1483, in add_extension
ext = Extension(**ext_args)
File "/home/odroid/downloads/numpy/numpy/distutils/extension.py", line 52, in __init__ export_symbols)
TypeError: __init__() takes from 3 to 4 positional arguments but 13 were given
How can it be fixed?
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (10 by maintainers)
Top GitHub Comments
@sisp Aha, looking at newest setuptools definition of
class Extensions
there is a new__init__
function with argumentsSo that definitely looks like a problem, one that should be fixed by using the proper call with keywords in Numpy.
@rgommers Re
export_symbols
, if the symbols aren’t demangled it is probably useless for C++.