Skip to content

Instantly share code, notes, and snippets.

@dmd
Created October 7, 2022 16:51
Show Gist options
  • Save dmd/47a318f05d0784f6e13e4bffb54e3aeb to your computer and use it in GitHub Desktop.
Save dmd/47a318f05d0784f6e13e4bffb54e3aeb to your computer and use it in GitHub Desktop.
Script started on Fri Oct 7 12:50:54 2022
]1337;[email protected]]1337;CurrentDir=/Users/dmd]1337;ShellIntegrationVersion=12;shell=zsh% ]2;dmd@dromedary:~]1;~]133;D;0]1337;[email protected]]1337;CurrentDir=/Users/dmd ]133;A
dmd@dromedary ~
$ ]133;B[?1h=[?2004hppython3 -m venv venvs/granger[?1l>[?2004l
]2;python3 -m venv venvs/granger]1;python3]133;C;% ]2;dmd@dromedary:~]1;~]133;D;0]1337;[email protected]]1337;CurrentDir=/Users/dmd ]133;A
dmd@dromedary ~
$ ]133;B[?1h=[?2004h.. venvs/granger/activate[?1l>[?2004l
]2;. venvs/granger/activate]1;.]133;C;.: no such file or directory: venvs/granger/activate
% ]2;dmd@dromedary:~]1;~]133;D;127]1337;[email protected]]1337;CurrentDir=/Users/dmd ]133;A
dmd@dromedary ~
✖127 ❯ ]133;B[?1h=[?2004h.. venvs/granger/bin/activate[?1l>[?2004l
]2;. venvs/granger/bin/activate]1;.]133;C;% ]2;dmd@dromedary:~]1;~]133;D;0]1337;[email protected]]1337;CurrentDir=/Users/dmd ]133;A
dmd@dromedary ~ via 🐍 v3.10.7 (granger) 
$ ]133;B[?1h=[?2004hppip install dmipy[?1l>[?2004l
]2;pip install dmipy]1;pip]133;C;Collecting dmipy
Using cached dmipy-1.0.5-py3-none-any.whl (28.0 MB)
Collecting boto
Using cached boto-2.49.0-py2.py3-none-any.whl (1.4 MB)
Collecting pathlib
Downloading pathlib-1.0.1-py3-none-any.whl (14 kB)
Collecting cvxpy
Using cached cvxpy-1.2.1-cp310-cp310-macosx_10_9_universal2.whl (1.1 MB)
Collecting scipy==1.4.1
Using cached scipy-1.4.1.tar.gz (24.6 MB)
Installing build dependencies ... [?25l- \ | / - \ | / error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [301 lines of output]
  Ignoring numpy: markers 'python_version == "3.5" and platform_system != "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.5" and platform_system == "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment
  Collecting wheel
  Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
  Collecting setuptools
  Using cached setuptools-65.4.1-py3-none-any.whl (1.2 MB)
  Collecting Cython>=0.29.13
  Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB)
  Collecting numpy==1.17.3
  Using cached numpy-1.17.3.zip (6.4 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Collecting pybind11>=2.4.0
  Using cached pybind11-2.10.0-py3-none-any.whl (213 kB)
  Using legacy 'setup.py install' for numpy, since package 'wheel' is not installed.
  Installing collected packages: wheel, setuptools, pybind11, 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
  ╰─> [263 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 ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  blis_info:
  customize UnixCCompiler
  libraries blis not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  openblas_info:
  customize UnixCCompiler
  customize UnixCCompiler
  libraries openblas not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  atlas_3_10_blas_threads_info:
  Setting PTATLAS=ATLAS
  customize UnixCCompiler
  libraries tatlas not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  atlas_3_10_blas_info:
  customize UnixCCompiler
  libraries satlas not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  atlas_blas_threads_info:
  Setting PTATLAS=ATLAS
  customize UnixCCompiler
  libraries ptf77blas,ptcblas,atlas not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  atlas_blas_info:
  customize UnixCCompiler
  libraries f77blas,cblas,atlas not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  accelerate_info:
  customize UnixCCompiler
  libraries accelerate not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  Library accelerate was not found. Ignoring
  customize UnixCCompiler
  libraries veclib not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  Library veclib was not found. Ignoring
  FOUND:
  extra_compile_args = ['-faltivec', '-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 = ['-faltivec', '-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 ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  openblas_lapack_info:
  customize UnixCCompiler
  customize UnixCCompiler
  libraries openblas not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  openblas_clapack_info:
  customize UnixCCompiler
  customize UnixCCompiler
  libraries openblas,lapack not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  flame_info:
  customize UnixCCompiler
  libraries flame not found in ['/Users/dmd/venvs/granger/lib', '/usr/local/lib', '/usr/lib']
  NOT AVAILABLE
 
  atlas_3_10_threads_info:
  Setting PTATLAS=ATLAS
  customize UnixCCompiler
  libraries lapack_atlas not found in /Users/dmd/venvs/granger/lib
  customize UnixCCompiler
  libraries tatlas,tatlas not found in /Users/dmd/venvs/granger/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 /Users/dmd/venvs/granger/lib
  customize UnixCCompiler
  libraries satlas,satlas not found in /Users/dmd/venvs/granger/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 /Users/dmd/venvs/granger/lib
  customize UnixCCompiler
  libraries ptf77blas,ptcblas,atlas not found in /Users/dmd/venvs/granger/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 /Users/dmd/venvs/granger/lib
  customize UnixCCompiler
  libraries f77blas,cblas,atlas not found in /Users/dmd/venvs/granger/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 = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
  extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
  define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
 
  /Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/dist.py:262: UserWarning: Unknown distribution option: 'define_macros'
  warnings.warn(msg)
  running install
  /Users/dmd/venvs/granger/lib/python3.10/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
  creating build
  creating build/src.macosx-12-arm64-3.1
  creating build/src.macosx-12-arm64-3.1/numpy
  creating build/src.macosx-12-arm64-3.1/numpy/distutils
  building library "npymath" sources
  get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
  customize Gnu95FCompiler
  Found executable /opt/homebrew/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/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/setup.py", line 443, in <module>
  setup_package()
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/setup.py", line 435, in setup_package
  setup(**metadata)
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/core.py", line 171, in setup
  return old_setup(**new_attr)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
  return distutils.core.setup(**attrs)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
  return run_commands(dist)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
  dist.run_commands()
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands
  self.run_command(cmd)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
  super().run_command(command)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
  cmd_obj.run()
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/command/install.py", line 62, in run
  r = self.setuptools_run()
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/command/install.py", line 36, in setuptools_run
  return distutils_install.run(self)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/command/install.py", line 698, in run
  self.run_command('build')
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
  self.distribution.run_command(command)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
  super().run_command(command)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
  cmd_obj.run()
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/command/build.py", line 47, in run
  old_build.run(self)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 132, in run
  self.run_command(cmd_name)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
  self.distribution.run_command(command)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
  super().run_command(command)
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
  cmd_obj.run()
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/command/build_src.py", line 142, in run
  self.build_sources()
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/command/build_src.py", line 153, in build_sources
  self.build_library_sources(*libname_info)
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/command/build_src.py", line 286, in build_library_sources
  sources = self.generate_sources(sources, (lib_name, build_info))
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/command/build_src.py", line 369, in generate_sources
  source = func(extension, build_dir)
  File "numpy/core/setup.py", line 667, in get_mathlib_info
  st = config_cmd.try_link('int main(void) { return 0;}')
  File "/Users/dmd/venvs/granger/lib/python3.10/site-packages/setuptools/_distutils/command/config.py", line 248, in try_link
  self._check_compiler()
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/command/config.py", line 82, in _check_compiler
  self.fcompiler = new_fcompiler(compiler=self.fcompiler,
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/fcompiler/__init__.py", line 884, in new_fcompiler
  compiler = get_default_fcompiler(plat, requiref90=requiref90,
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/fcompiler/__init__.py", line 855, in get_default_fcompiler
  compiler_type = _find_existing_fcompiler(matching_compiler_types,
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/fcompiler/__init__.py", line 806, in _find_existing_fcompiler
  c.customize(dist)
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/fcompiler/__init__.py", line 530, in customize
  linker_so_flags = self.flag_vars.linker_so
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/fcompiler/environment.py", line 40, in __getattr__
  return self._get_var(name, conf_desc)
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/fcompiler/environment.py", line 56, in _get_var
  var = self._hook_handler(name, hook)
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/fcompiler/__init__.py", line 709, in _environment_hook
  return hook()
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/fcompiler/gnu.py", line 353, in get_flags_linker_so
  flags = GnuFCompiler.get_flags_linker_so(self)
  File "/private/var/folders/pc/kqpwrpx51hxc34zblt75y0c80000gn/T/pip-install-62bftzy2/numpy_a7cffebae69e48f58f5e924a33747bd6/numpy/distutils/fcompiler/gnu.py", line 144, in get_flags_linker_so
  os.environ['MACOSX_DEPLOYMENT_TARGET'] = target
  File "/opt/homebrew/Cellar/[email protected]/3.10.7/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py", line 684, in __setitem__
  value = self.encodevalue(value)
  File "/opt/homebrew/Cellar/[email protected]/3.10.7/Frameworks/Python.framework/Versions/3.10/lib/python3.10/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.
  [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.
[?25h% ]2;dmd@dromedary:~]1;~]133;D;1]1337;[email protected]]1337;CurrentDir=/Users/dmd ]133;A
dmd@dromedary ~ via 🐍 v3.10.7 (granger) took 4s
✖1 ❯ ]133;B[?1h=[?2004h[?2004l
Script done on Fri Oct 7 12:51:32 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment