basemap: Basemap install failing issue in MacOS
Hi, I tried to install Basemap via pip in Mac OS, but I have encountered an error. I also tried with another version (1.3.0), but those resulted in another error related to GEOS (it is installed and the environment variable is set correctly though).
Really appreciate your effort on this outstanding tool and thank you in advance for your support.
following is the log for installation of v 1.3.3:
$pip install basemap DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621 Collecting basemap Using cached basemap-1.3.3.zip (155 kB) Installing build dependencies … error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [553 lines of output] Ignoring numpy: markers ‘python_version >= “3.10”’ don’t match your environment Ignoring numpy: markers ‘python_version == “2.6” or (python_version >= “3.2” and python_version <= “3.3”)’ don’t match your environment Ignoring cython: markers ‘python_version == “3.2”’ don’t match your environment Collecting setuptools Downloading setuptools-63.4.1-py3-none-any.whl (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 7.2 MB/s eta 0:00:00 Collecting wheel Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB) Collecting numpy==1.16.6 Using cached numpy-1.16.6.zip (5.1 MB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status ‘done’ Collecting cython<3.1,>=0.29 Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB) Building wheels for collected packages: numpy Building wheel for numpy (setup.py): started Building wheel for numpy (setup.py): finished with status ‘error’ error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [239 lines of output]
Running from numpy source directory.
/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
customize UnixCCompiler
libraries satlas not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas,lapack not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/lib/python3.9/site-packages/setuptools/_distutils/dist.py:275: 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-12-x86_64-3.9
creating build/src.macosx-12-x86_64-3.9/numpy
creating build/src.macosx-12-x86_64-3.9/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 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/setup.py", line 419, in <module>
setup_package()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/setup.py", line 411, in setup_package
setup(**metadata)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/core.py", line 171, in setup
return old_setup(**new_attr)
File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/command/build.py", line 47, in run
old_build.run(self)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 136, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/command/build_src.py", line 148, in run
self.build_sources()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/command/build_src.py", line 159, in build_sources
self.build_library_sources(*libname_info)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/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/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/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/lib/python3.9/site-packages/setuptools/_distutils/command/config.py", line 241, in try_link
self._check_compiler()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/command/config.py", line 80, in _check_compiler
self.fcompiler = new_fcompiler(compiler=self.fcompiler,
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/__init__.py", line 884, in new_fcompiler
compiler = get_default_fcompiler(plat, requiref90=requiref90,
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/__init__.py", line 855, in get_default_fcompiler
compiler_type = _find_existing_fcompiler(matching_compiler_types,
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/__init__.py", line 806, in _find_existing_fcompiler
c.customize(dist)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/__init__.py", line 530, in customize
linker_so_flags = self.flag_vars.linker_so
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/environment.py", line 40, in __getattr__
return self._get_var(name, conf_desc)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/environment.py", line 56, in _get_var
var = self._hook_handler(name, hook)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/__init__.py", line 709, in _environment_hook
return hook()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/gnu.py", line 353, in get_flags_linker_so
flags = GnuFCompiler.get_flags_linker_so(self)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/gnu.py", line 144, in get_flags_linker_so
os.environ['MACOSX_DEPLOYMENT_TARGET'] = target
File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 684, in __setitem__
value = self.encodevalue(value)
File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 756, in encode
raise TypeError("str expected, not %s" % type(value).__name__)
TypeError: str expected, not int
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Running setup.py clean for numpy
error: subprocess-exited-with-error
× python setup.py clean did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
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).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for numpy
Failed to build numpy
Installing collected packages: wheel, setuptools, numpy, cython
Running setup.py install for numpy: started
Running setup.py install for numpy: finished with status 'error'
error: subprocess-exited-with-error
× Running setup.py install for numpy did not run successfully.
│ exit code: 1
╰─> [248 lines of output]
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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
customize UnixCCompiler
libraries satlas not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas,lapack not found in ['/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/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/lib/python3.9/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running install
/usr/local/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
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 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/setup.py", line 419, in <module>
setup_package()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/setup.py", line 411, in setup_package
setup(**metadata)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/core.py", line 171, in setup
return old_setup(**new_attr)
File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/command/install.py", line 62, in run
r = self.setuptools_run()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/command/install.py", line 36, in setuptools_run
return distutils_install.run(self)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/install.py", line 670, in run
self.run_command('build')
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/command/build.py", line 47, in run
old_build.run(self)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 136, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/command/build_src.py", line 148, in run
self.build_sources()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/command/build_src.py", line 159, in build_sources
self.build_library_sources(*libname_info)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/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/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/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/lib/python3.9/site-packages/setuptools/_distutils/command/config.py", line 241, in try_link
self._check_compiler()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/command/config.py", line 80, in _check_compiler
self.fcompiler = new_fcompiler(compiler=self.fcompiler,
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/__init__.py", line 884, in new_fcompiler
compiler = get_default_fcompiler(plat, requiref90=requiref90,
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/__init__.py", line 855, in get_default_fcompiler
compiler_type = _find_existing_fcompiler(matching_compiler_types,
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/__init__.py", line 806, in _find_existing_fcompiler
c.customize(dist)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/__init__.py", line 530, in customize
linker_so_flags = self.flag_vars.linker_so
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/environment.py", line 40, in __getattr__
return self._get_var(name, conf_desc)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/environment.py", line 56, in _get_var
var = self._hook_handler(name, hook)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/__init__.py", line 709, in _environment_hook
return hook()
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/gnu.py", line 353, in get_flags_linker_so
flags = GnuFCompiler.get_flags_linker_so(self)
File "/private/var/folders/fc/29bg66sx4_x32gn5bfz_0fgh0000gn/T/pip-install-mnxg0uip/numpy_cdaa9579c1e345e6b85c29fc7af2b92d/numpy/distutils/fcompiler/gnu.py", line 144, in get_flags_linker_so
os.environ['MACOSX_DEPLOYMENT_TARGET'] = target
File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 684, in __setitem__
value = self.encodevalue(value)
File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 756, in encode
raise TypeError("str expected, not %s" % type(value).__name__)
TypeError: str expected, not int
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: There was an error checking the latest version of pip.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. WARNING: There was an error checking the latest version of pip.
And, following is NumPy info: $pip show numpy Name: numpy Version: 1.23.1 Summary: NumPy is the fundamental package for array computing with Python. Home-page: https://www.numpy.org Author: Travis E. Oliphant et al. Author-email: License: BSD Location: /usr/local/lib/python3.9/site-packages Requires: Required-by: cftime, h5py, matplotlib, netCDF4, pandas, ray, scipy, wradlib, xarray
Next is pip, and python versions: $pip -V pip 22.1.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 27 (16 by maintainers)
So after downloading the file, I changed the filename:
mv basemap-1.4.0.dev0-cp39-cp39-macosx_11_0_arm64.whl.zip basemap-1.4.0.dev0-cp39-cp39-macosx_11_0_arm64.whl
And then tried to run the first command in my environment with python version 3.9.7 and got this error back:
@tamidodo Sorry for the late reply, I was busier than expected. I attach here the current wheel file for Python 3.9 (you need to remove the .zip at the end after downloading): basemap-1.4.0.dev0-cp39-cp39-macosx_11_0_arm64.whl.zip
Since you are working with Anaconda, I would suggest to install this wheel without the dependencies, and afterwards install the dependencies manually with
conda
(to keep within theconda
ecosystem as much as possible):The wheel bundles its own precompiled GEOS dylib, which only depends on system libraries, so I hope it works for you without any tweaking. I am happy to hear any feedback from you!
@molinav Now it works perfectly. Thank you very much. and I am willing to test your new builds in MacOS in the future. Thank you again, have a great weekend!