Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numpy installation error #68

Open
abhishek-bodapati opened this issue Sep 3, 2021 · 0 comments
Open

Numpy installation error #68

abhishek-bodapati opened this issue Sep 3, 2021 · 0 comments

Comments

@abhishek-bodapati
Copy link

Platform: MacOS 11.5.2

Collecting numpy==1.16.0
  Using cached numpy-1.16.0.zip (5.1 MB)
Building wheels for collected packages: numpy
  Building wheel for numpy (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/[email protected]/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py'"'"'; __file__='"'"'/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-wheel-y7omuywx
       cwd: /private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/
  Complete output (230 lines):
  Running from numpy source directory.
  /private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/misc_util.py:476: SyntaxWarning: "is" with a literal. Did you mean "=="?
    return is_string(s) and ('*' in s or '?' is s)
  blas_opt_info:
  blas_mkl_info:
  customize UnixCCompiler
    libraries mkl_rt not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE
  
  blis_info:
  customize UnixCCompiler
    libraries blis not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE
  
  openblas_info:
  customize UnixCCompiler
  customize UnixCCompiler
    libraries openblas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE
  
  atlas_3_10_blas_threads_info:
  Setting PTATLAS=ATLAS
  customize UnixCCompiler
    libraries tatlas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE
  
  atlas_3_10_blas_info:
  customize UnixCCompiler
    libraries satlas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE
  
  atlas_blas_threads_info:
  Setting PTATLAS=ATLAS
  customize UnixCCompiler
    libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE
  
  atlas_blas_info:
  customize UnixCCompiler
    libraries f77blas,cblas,atlas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE
  
  accelerate_info:
    FOUND:
      extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
      extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
      define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
  
    FOUND:
      extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
      extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
      define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
  
  /bin/sh: svnversion: command not found
  non-existing path in 'numpy/distutils': 'site.cfg'
  lapack_opt_info:
  lapack_mkl_info:
  customize UnixCCompiler
    libraries mkl_rt not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE
  
  openblas_lapack_info:
  customize UnixCCompiler
  customize UnixCCompiler
    libraries openblas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE
  
  openblas_clapack_info:
  customize UnixCCompiler
  customize UnixCCompiler
    libraries openblas,lapack not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE
  
  atlas_3_10_threads_info:
  Setting PTATLAS=ATLAS
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
  customize UnixCCompiler
    libraries tatlas,tatlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/local/lib
  customize UnixCCompiler
    libraries tatlas,tatlas not found in /usr/local/lib
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/lib
  customize UnixCCompiler
    libraries tatlas,tatlas not found in /usr/lib
  <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
    NOT AVAILABLE
  
  atlas_3_10_info:
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
  customize UnixCCompiler
    libraries satlas,satlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/local/lib
  customize UnixCCompiler
    libraries satlas,satlas not found in /usr/local/lib
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/lib
  customize UnixCCompiler
    libraries satlas,satlas not found in /usr/lib
  <class 'numpy.distutils.system_info.atlas_3_10_info'>
    NOT AVAILABLE
  
  atlas_threads_info:
  Setting PTATLAS=ATLAS
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
  customize UnixCCompiler
    libraries ptf77blas,ptcblas,atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/local/lib
  customize UnixCCompiler
    libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/lib
  customize UnixCCompiler
    libraries ptf77blas,ptcblas,atlas not found in /usr/lib
  <class 'numpy.distutils.system_info.atlas_threads_info'>
    NOT AVAILABLE
  
  atlas_info:
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
  customize UnixCCompiler
    libraries f77blas,cblas,atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/local/lib
  customize UnixCCompiler
    libraries f77blas,cblas,atlas not found in /usr/local/lib
  customize UnixCCompiler
    libraries lapack_atlas not found in /usr/lib
  customize UnixCCompiler
    libraries f77blas,cblas,atlas not found in /usr/lib
  <class 'numpy.distutils.system_info.atlas_info'>
    NOT AVAILABLE
  
    FOUND:
      extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
      extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
      define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
  
  /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running config_cc
  unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  build_src
  building py_modules sources
  creating build
  creating build/src.macosx-11-x86_64-3.8
  creating build/src.macosx-11-x86_64-3.8/numpy
  creating build/src.macosx-11-x86_64-3.8/numpy/distutils
  building library "npymath" sources
  get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
  customize Gnu95FCompiler
  Found executable /usr/local/bin/gfortran
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py", line 415, in <module>
      setup_package()
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py", line 407, in setup_package
      setup(**metadata)
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/core.py", line 171, in setup
      return old_setup(**new_attr)
    File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/build.py", line 47, in run
      old_build.run(self)
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/build_src.py", line 148, in run
      self.build_sources()
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/build_src.py", line 159, in build_sources
      self.build_library_sources(*libname_info)
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/build_src.py", line 292, in build_library_sources
      sources = self.generate_sources(sources, (lib_name, build_info))
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/build_src.py", line 375, in generate_sources
      source = func(extension, build_dir)
    File "numpy/core/setup.py", line 665, in get_mathlib_info
      st = config_cmd.try_link('int main(void) { return 0;}')
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/config.py", line 241, in try_link
      self._check_compiler()
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/config.py", line 80, in _check_compiler
      self.fcompiler = new_fcompiler(compiler=self.fcompiler,
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/__init__.py", line 884, in new_fcompiler
      compiler = get_default_fcompiler(plat, requiref90=requiref90,
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/__init__.py", line 855, in get_default_fcompiler
      compiler_type =  _find_existing_fcompiler(matching_compiler_types,
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/__init__.py", line 806, in _find_existing_fcompiler
      c.customize(dist)
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/__init__.py", line 530, in customize
      linker_so_flags = self.flag_vars.linker_so
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/environment.py", line 39, in __getattr__
      return self._get_var(name, conf_desc)
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/environment.py", line 53, in _get_var
      var = self._hook_handler(name, hook)
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/__init__.py", line 709, in _environment_hook
      return hook()
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/gnu.py", line 350, in get_flags_linker_so
      flags = GnuFCompiler.get_flags_linker_so(self)
    File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/gnu.py", line 144, in get_flags_linker_so
      os.environ['MACOSX_DEPLOYMENT_TARGET'] = target
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py", line 680, in __setitem__
      value = self.encodevalue(value)
    File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py", line 750, in encode
      raise TypeError("str expected, not %s" % type(value).__name__)
  TypeError: str expected, not int
  ----------------------------------------
  ERROR: Failed building wheel for numpy
  Running setup.py clean for numpy
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/[email protected]/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py'"'"'; __file__='"'"'/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
       cwd: /private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73
  Complete output (10 lines):
  Running from numpy source directory.
  
  `setup.py clean` is not supported, use one of the following instead:
  
    - `git clean -xdf` (cleans all files)
    - `git clean -Xdf` (cleans all versioned files, doesn't touch
                        files that aren't checked into the git repo)
  
  Add `--force` to your command to use it anyway if you must (unsupported).
  
  ----------------------------------------
  ERROR: Failed cleaning build dir for numpy
Failed to build numpy
Installing collected packages: numpy
  Attempting uninstall: numpy
    Found existing installation: numpy 1.21.2
    Uninstalling numpy-1.21.2:
      Successfully uninstalled numpy-1.21.2
    Running setup.py install for numpy ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/[email protected]/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py'"'"'; __file__='"'"'/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-record-0vkzz_w3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/numpy
         cwd: /private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/
    Complete output (237 lines):
    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)
    
    
    blas_opt_info:
    blas_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    blis_info:
    customize UnixCCompiler
      libraries blis not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    openblas_info:
    customize UnixCCompiler
    customize UnixCCompiler
      libraries openblas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_3_10_blas_threads_info:
    Setting PTATLAS=ATLAS
    customize UnixCCompiler
      libraries tatlas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_3_10_blas_info:
    customize UnixCCompiler
      libraries satlas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_blas_info:
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    accelerate_info:
      FOUND:
        extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
    
      FOUND:
        extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
    
    /bin/sh: svnversion: command not found
    non-existing path in 'numpy/distutils': 'site.cfg'
    lapack_opt_info:
    lapack_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    openblas_lapack_info:
    customize UnixCCompiler
    customize UnixCCompiler
      libraries openblas not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    openblas_clapack_info:
    customize UnixCCompiler
    customize UnixCCompiler
      libraries openblas,lapack not found in ['/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib', '/usr/local/lib', '/usr/lib']
      NOT AVAILABLE
    
    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
    customize UnixCCompiler
      libraries tatlas,tatlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries tatlas,tatlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries tatlas,tatlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE
    
    atlas_3_10_info:
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
    customize UnixCCompiler
      libraries satlas,satlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries satlas,satlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries satlas,satlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE
    
    atlas_threads_info:
    Setting PTATLAS=ATLAS
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries ptf77blas,ptcblas,atlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE
    
    atlas_info:
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in /usr/local/lib
    customize UnixCCompiler
      libraries lapack_atlas not found in /usr/lib
    customize UnixCCompiler
      libraries f77blas,cblas,atlas not found in /usr/lib
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE
    
      FOUND:
        extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
    
    /usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    running install
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building py_modules sources
    building library "npymath" sources
    get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
    customize Gnu95FCompiler
    Found executable /usr/local/bin/gfortran
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py", line 415, in <module>
        setup_package()
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py", line 407, in setup_package
        setup(**metadata)
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/core.py", line 171, in setup
        return old_setup(**new_attr)
      File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/install.py", line 62, in run
        r = self.setuptools_run()
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/install.py", line 36, in setuptools_run
        return distutils_install.run(self)
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/build.py", line 47, in run
        old_build.run(self)
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/build_src.py", line 148, in run
        self.build_sources()
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/build_src.py", line 159, in build_sources
        self.build_library_sources(*libname_info)
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/build_src.py", line 292, in build_library_sources
        sources = self.generate_sources(sources, (lib_name, build_info))
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/build_src.py", line 375, in generate_sources
        source = func(extension, build_dir)
      File "numpy/core/setup.py", line 665, in get_mathlib_info
        st = config_cmd.try_link('int main(void) { return 0;}')
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/config.py", line 241, in try_link
        self._check_compiler()
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/command/config.py", line 80, in _check_compiler
        self.fcompiler = new_fcompiler(compiler=self.fcompiler,
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/__init__.py", line 884, in new_fcompiler
        compiler = get_default_fcompiler(plat, requiref90=requiref90,
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/__init__.py", line 855, in get_default_fcompiler
        compiler_type =  _find_existing_fcompiler(matching_compiler_types,
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/__init__.py", line 806, in _find_existing_fcompiler
        c.customize(dist)
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/__init__.py", line 530, in customize
        linker_so_flags = self.flag_vars.linker_so
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/environment.py", line 39, in __getattr__
        return self._get_var(name, conf_desc)
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/environment.py", line 53, in _get_var
        var = self._hook_handler(name, hook)
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/__init__.py", line 709, in _environment_hook
        return hook()
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/gnu.py", line 350, in get_flags_linker_so
        flags = GnuFCompiler.get_flags_linker_so(self)
      File "/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/numpy/distutils/fcompiler/gnu.py", line 144, in get_flags_linker_so
        os.environ['MACOSX_DEPLOYMENT_TARGET'] = target
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py", line 680, in __setitem__
        value = self.encodevalue(value)
      File "/usr/local/Cellar/[email protected]/3.8.11/Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py", line 750, in encode
        raise TypeError("str expected, not %s" % type(value).__name__)
    TypeError: str expected, not int
    ----------------------------------------
  Rolling back uninstall of numpy
  Moving to /usr/local/bin/f2py
   from /private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-uninstall-s765sx9v/f2py
  Moving to /usr/local/bin/f2py3
   from /private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-uninstall-s765sx9v/f2py3
  Moving to /usr/local/bin/f2py3.8
   from /private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-uninstall-s765sx9v/f2py3.8
  Moving to /usr/local/lib/python3.8/site-packages/numpy-1.21.2.dist-info/
   from /usr/local/lib/python3.8/site-packages/~umpy-1.21.2.dist-info
  Moving to /usr/local/lib/python3.8/site-packages/numpy/
   from /usr/local/lib/python3.8/site-packages/~umpy
ERROR: Command errored out with exit status 1: /usr/local/opt/[email protected]/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py'"'"'; __file__='"'"'/private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-install-3ds1rof9/numpy_0874d8691c7a46a8865ac44cd4502b73/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/fw/6kp_z8rx5m15m3686yp2z0l80000gp/T/pip-record-0vkzz_w3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/numpy Check the logs for full command output.```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant