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

Cannot pip install #71

Open
rsajulga-nmdp opened this issue Mar 29, 2022 · 0 comments
Open

Cannot pip install #71

rsajulga-nmdp opened this issue Mar 29, 2022 · 0 comments

Comments

@rsajulga-nmdp
Copy link

Attempting to pip install pyhml

pip install pyhml

gives the error

       cpdef get_item(self, float64_t val)
          cpdef set_item(self, float64_t key, Py_ssize_t val)
      
      cdef class PyObjectHashTable(HashTable):
          cdef kh_pymap_t *table
              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:29:9: 'kh_pymap_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cpdef get_item(self, object val)
          cpdef set_item(self, object key, Py_ssize_t val)
      
      cdef class MultiIndexHashTable(HashTable):
          cdef:
              kh_uint64_t *table
             ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:36:8: 'kh_uint64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cpdef set_item(self, object key, Py_ssize_t val)
          cdef inline void _check_for_collision(self, Py_ssize_t loc, object label)
      
      
      cdef class StringHashTable(HashTable):
          cdef kh_str_t *table
              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:45:9: 'kh_str_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      
          cpdef get_item(self, object val)
          cpdef set_item(self, object key, Py_ssize_t val)
      
      cdef struct Int64VectorData:
          int64_t *data
         ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:51:4: 'int64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cdef Int64VectorData *data
          cdef ndarray ao
      
          cdef resize(self)
          cpdef to_array(self)
          cdef inline void append(self, int64_t x)
                                       ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:60:34: 'int64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cdef ndarray ao
      
          cdef resize(self)
          cpdef to_array(self)
          cdef inline void append(self, int64_t x)
          cdef extend(self, int64_t[:] x)
                           ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:61:22: 'int64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      
          return left_indexer, right_indexer
      
      
      def asof_join_backward_uint64_t_by_object(
              ndarray[uint64_t] left_values,
                             ^
      ------------------------------------------------------------
      
      pandas/_libs/join_func_helper.pxi:551:24: Invalid type.
      skipping 'pandas/_libs/reshape.c' Cython extension (up-to-date)
      cythoning pandas/_libs/interval.pyx to pandas/_libs/interval.c
      /opt/anaconda3/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/g3/nf1886f95tx2q7_rd18rvz380000gp/T/pip-install-28qbv3ul/pandas_77a6ddc929f348708903dc384b82cbe3/pandas/_libs/interval.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          bint kh_exist_strbox(kh_strbox_t*, khiter_t) nogil
      
          khuint_t kh_needed_n_buckets(khuint_t element_n) nogil
      
      
      include "khash_for_primitive_helper.pxi"
      ^
      ------------------------------------------------------------
      
      /opt/anaconda3/lib/python3.7/site-packages/pandas/_libs/khash.pxd:129:0: 'khash_for_primitive_helper.pxi' not found
      
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      from khash cimport (kh_int64_t, kh_uint64_t, kh_float64_t, kh_pymap_t,
      ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:1:0: 'pandas/_libs/khash/kh_int64_t.pxd' not found
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      from khash cimport (kh_int64_t, kh_uint64_t, kh_float64_t, kh_pymap_t,
      ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:1:0: 'pandas/_libs/khash/kh_uint64_t.pxd' not found
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      from khash cimport (kh_int64_t, kh_uint64_t, kh_float64_t, kh_pymap_t,
      ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:1:0: 'pandas/_libs/khash/kh_float64_t.pxd' not found
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      from khash cimport (kh_int64_t, kh_uint64_t, kh_float64_t, kh_pymap_t,
      ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:1:0: 'pandas/_libs/khash/kh_pymap_t.pxd' not found
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      from khash cimport (kh_int64_t, kh_uint64_t, kh_float64_t, kh_pymap_t,
      ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:1:0: 'pandas/_libs/khash/kh_str_t.pxd' not found
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      from khash cimport (kh_int64_t, kh_uint64_t, kh_float64_t, kh_pymap_t,
      ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:1:0: 'pandas/_libs/khash/uint64_t.pxd' not found
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      from khash cimport (kh_int64_t, kh_uint64_t, kh_float64_t, kh_pymap_t,
      ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:1:0: 'pandas/_libs/khash/int64_t.pxd' not found
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      from khash cimport (kh_int64_t, kh_uint64_t, kh_float64_t, kh_pymap_t,
      ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:1:0: 'pandas/_libs/khash/float64_t.pxd' not found
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      
      cdef class HashTable:
          pass
      
      cdef class UInt64HashTable(HashTable):
          cdef kh_uint64_t *table
              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:11:9: 'kh_uint64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          pass
      
      cdef class UInt64HashTable(HashTable):
          cdef kh_uint64_t *table
      
          cpdef get_item(self, uint64_t val)
                              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:13:25: 'uint64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      
      cdef class UInt64HashTable(HashTable):
          cdef kh_uint64_t *table
      
          cpdef get_item(self, uint64_t val)
          cpdef set_item(self, uint64_t key, Py_ssize_t val)
                              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:14:25: 'uint64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      
          cpdef get_item(self, uint64_t val)
          cpdef set_item(self, uint64_t key, Py_ssize_t val)
      
      cdef class Int64HashTable(HashTable):
          cdef kh_int64_t *table
              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:17:9: 'kh_int64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cpdef set_item(self, uint64_t key, Py_ssize_t val)
      
      cdef class Int64HashTable(HashTable):
          cdef kh_int64_t *table
      
          cpdef get_item(self, int64_t val)
                              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:19:25: 'int64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      
      cdef class Int64HashTable(HashTable):
          cdef kh_int64_t *table
      
          cpdef get_item(self, int64_t val)
          cpdef set_item(self, int64_t key, Py_ssize_t val)
                              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:20:25: 'int64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      
          cpdef get_item(self, int64_t val)
          cpdef set_item(self, int64_t key, Py_ssize_t val)
      
      cdef class Float64HashTable(HashTable):
          cdef kh_float64_t *table
              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:23:9: 'kh_float64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cpdef set_item(self, int64_t key, Py_ssize_t val)
      
      cdef class Float64HashTable(HashTable):
          cdef kh_float64_t *table
      
          cpdef get_item(self, float64_t val)
                              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:25:25: 'float64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      
      cdef class Float64HashTable(HashTable):
          cdef kh_float64_t *table
      
          cpdef get_item(self, float64_t val)
          cpdef set_item(self, float64_t key, Py_ssize_t val)
                              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:26:25: 'float64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      
          cpdef get_item(self, float64_t val)
          cpdef set_item(self, float64_t key, Py_ssize_t val)
      
      cdef class PyObjectHashTable(HashTable):
          cdef kh_pymap_t *table
              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:29:9: 'kh_pymap_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cpdef get_item(self, object val)
          cpdef set_item(self, object key, Py_ssize_t val)
      
      cdef class MultiIndexHashTable(HashTable):
          cdef:
              kh_uint64_t *table
             ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:36:8: 'kh_uint64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cpdef set_item(self, object key, Py_ssize_t val)
          cdef inline void _check_for_collision(self, Py_ssize_t loc, object label)
      
      
      cdef class StringHashTable(HashTable):
          cdef kh_str_t *table
              ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:45:9: 'kh_str_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      
          cpdef get_item(self, object val)
          cpdef set_item(self, object key, Py_ssize_t val)
      
      cdef struct Int64VectorData:
          int64_t *data
         ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:51:4: 'int64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cdef Int64VectorData *data
          cdef ndarray ao
      
          cdef resize(self)
          cpdef to_array(self)
          cdef inline void append(self, int64_t x)
                                       ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:60:34: 'int64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cdef ndarray ao
      
          cdef resize(self)
          cpdef to_array(self)
          cdef inline void append(self, int64_t x)
          cdef extend(self, int64_t[:] x)
                           ^
      ------------------------------------------------------------
      
      pandas/_libs/hashtable.pxd:61:22: 'int64_t' is not a type identifier
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          left = np.empty(n, dtype=object)
          right = np.empty(n, dtype=object)
      
          for i in range(len(intervals)):
              interval = intervals[i]
              if util._checknull(interval):
                    ^
      ------------------------------------------------------------
      
      pandas/_libs/interval.pyx:197:15: cimported module has no attribute '_checknull'
      skipping 'pandas/_libs/window.c' Cython extension (up-to-date)
      skipping 'pandas/_libs/parsers.c' Cython extension (up-to-date)
      skipping 'pandas/_libs/sparse.c' Cython extension (up-to-date)
      skipping 'pandas/_libs/testing.c' Cython extension (up-to-date)
      skipping 'pandas/_libs/hashing.c' Cython extension (up-to-date)
      skipping 'pandas/io/sas/sas.c' Cython extension (up-to-date)
      skipping 'pandas/io/msgpack/_packer.cpp' Cython extension (up-to-date)
      skipping 'pandas/io/msgpack/_unpacker.cpp' Cython extension (up-to-date)
      building 'pandas._libs.lib' extension
      creating build/temp.macosx-10.9-x86_64-3.7
      creating build/temp.macosx-10.9-x86_64-3.7/pandas
      creating build/temp.macosx-10.9-x86_64-3.7/pandas/_libs
      gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/include -arch x86_64 -I/opt/anaconda3/include -arch x86_64 -Ipandas/_libs/src/klib -Ipandas/_libs/src -I/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/opt/anaconda3/include/python3.7m -c pandas/_libs/lib.c -o build/temp.macosx-10.9-x86_64-3.7/pandas/_libs/lib.o -Wno-unused-function
      pandas/_libs/lib.c:1:2: error: Do not use this file, it is the result of a failed Cython compilation.
      #error Do not use this file, it is the result of a failed Cython compilation.
       ^
      1 error generated.
      error: command 'gcc' failed with exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pandas
  Running setup.py clean for pandas
Failed to build numpy pandas
WARNING: Ignoring invalid distribution -eq-ann (/opt/anaconda3/lib/python3.7/site-packages)
Installing collected packages: numpy, pandas, biopython, pyhml
  Attempting uninstall: numpy
    WARNING: Ignoring invalid distribution -eq-ann (/opt/anaconda3/lib/python3.7/site-packages)
    Found existing installation: numpy 1.18.1
    Uninstalling numpy-1.18.1:
      Successfully uninstalled numpy-1.18.1
  Running setup.py install for numpy ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for numpy did not run successfully.
  │ exit code: 1
  ╰─> [323 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
        FOUND:
          libraries = ['mkl_rt', 'pthread']
          library_dirs = ['/opt/anaconda3/lib']
          define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
          include_dirs = ['/usr/local/include', '/opt/anaconda3/include']
      
        FOUND:
          libraries = ['mkl_rt', 'pthread']
          library_dirs = ['/opt/anaconda3/lib']
          define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
          include_dirs = ['/usr/local/include', '/opt/anaconda3/include']
      
      /bin/sh: svnversion: command not found
      non-existing path in 'numpy/distutils': 'site.cfg'
      /bin/sh: svnversion: command not found
      F2PY Version 2
      lapack_opt_info:
      lapack_mkl_info:
      customize UnixCCompiler
        FOUND:
          libraries = ['mkl_rt', 'pthread']
          library_dirs = ['/opt/anaconda3/lib']
          define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
          include_dirs = ['/usr/local/include', '/opt/anaconda3/include']
      
        FOUND:
          libraries = ['mkl_rt', 'pthread']
          library_dirs = ['/opt/anaconda3/lib']
          define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
          include_dirs = ['/usr/local/include', '/opt/anaconda3/include']
      
      /opt/anaconda3/lib/python3.7/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
      Could not locate executable gfortran
      Could not locate executable f95
      customize NAGFCompiler
      customize AbsoftFCompiler
      Could not locate executable f90
      Could not locate executable f77
      customize IBMFCompiler
      Could not locate executable xlf90
      Could not locate executable xlf
      customize IntelFCompiler
      Could not locate executable ifort
      Could not locate executable ifc
      customize GnuFCompiler
      Could not locate executable g77
      customize G95FCompiler
      Could not locate executable g95
      customize PGroupFCompiler
      Could not locate executable pgfortran
      don't know how to compile Fortran code on platform 'posix'
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/include -arch x86_64 -I/opt/anaconda3/include -arch x86_64
      
      compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/anaconda3/include/python3.7m -c'
      gcc: _configtest.c
      gcc -arch x86_64 _configtest.o -o _configtest
      success!
      removing: _configtest.c _configtest.o _configtest
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/include -arch x86_64 -I/opt/anaconda3/include -arch x86_64
      
      compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/anaconda3/include/python3.7m -c'
      gcc: _configtest.c
      _configtest.c:1:5: warning: incompatible redeclaration of library function 'exp' [-Wincompatible-library-redeclaration]
      int exp (void);
          ^
      _configtest.c:1:5: note: 'exp' is a builtin with type 'double (double)'
      1 warning generated.
      gcc -arch x86_64 _configtest.o -o _configtest
      success!
      removing: _configtest.c _configtest.o _configtest
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/src/npymath' to include_dirs.
      None - nothing done with h_files = ['build/src.macosx-10.9-x86_64-3.7/numpy/core/src/npymath/npy_math_internal.h']
      building library "npysort" sources
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/src/private' to include_dirs.
      None - nothing done with h_files = ['build/src.macosx-10.9-x86_64-3.7/numpy/core/src/private/npy_partition.h', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/src/private/npy_binsearch.h']
      building extension "numpy.core._dummy" sources
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/config.h' to sources.
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/_numpyconfig.h' to sources.
      executing numpy/core/code_generators/generate_numpy_api.py
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/__multiarray_api.h' to sources.
      numpy.core - nothing done with h_files = ['build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/config.h', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/_numpyconfig.h', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/__multiarray_api.h']
      building extension "numpy.core.multiarray" sources
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/config.h' to sources.
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/_numpyconfig.h' to sources.
      executing numpy/core/code_generators/generate_numpy_api.py
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/__multiarray_api.h' to sources.
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/src/private' to include_dirs.
      numpy.core - nothing done with h_files = ['build/src.macosx-10.9-x86_64-3.7/numpy/core/src/private/templ_common.h', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/config.h', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/_numpyconfig.h', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/__multiarray_api.h']
      building extension "numpy.core.umath" sources
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/config.h' to sources.
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/_numpyconfig.h' to sources.
      executing numpy/core/code_generators/generate_ufunc_api.py
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/__ufunc_api.h' to sources.
        adding 'build/src.macosx-10.9-x86_64-3.7/numpy/core/src/umath' to include_dirs.
      numpy.core - nothing done with h_files = ['build/src.macosx-10.9-x86_64-3.7/numpy/core/src/umath/funcs.inc', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/src/umath/simd.inc', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/src/umath/loops.h', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/config.h', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/_numpyconfig.h', 'build/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy/__ufunc_api.h']
      building extension "numpy.core.umath_tests" sources
      building extension "numpy.core.test_rational" sources
      building extension "numpy.core.struct_ufunc_test" sources
      building extension "numpy.core.multiarray_tests" sources
      building extension "numpy.core.operand_flag_tests" sources
      building extension "numpy.fft.fftpack_lite" sources
      building extension "numpy.linalg.lapack_lite" sources
        adding 'numpy/linalg/lapack_lite/python_xerbla.c' to sources.
      building extension "numpy.linalg._umath_linalg" sources
        adding 'numpy/linalg/lapack_lite/python_xerbla.c' to sources.
      building extension "numpy.random.mtrand" sources
      building data_files sources
      build_src: building npy-pkg config files
      running build_py
      copying numpy/version.py -> build/lib.macosx-10.9-x86_64-3.7/numpy
      copying build/src.macosx-10.9-x86_64-3.7/numpy/__config__.py -> build/lib.macosx-10.9-x86_64-3.7/numpy
      copying build/src.macosx-10.9-x86_64-3.7/numpy/distutils/__config__.py -> build/lib.macosx-10.9-x86_64-3.7/numpy/distutils
      running build_clib
      customize UnixCCompiler
      customize UnixCCompiler using build_clib
      running build_ext
      customize UnixCCompiler
      customize UnixCCompiler using build_ext
      building 'numpy.random.mtrand' extension
      compiling C sources
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/include -arch x86_64 -I/opt/anaconda3/include -arch x86_64
      
      compile options: '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/anaconda3/include/python3.7m -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/npymath -c'
      gcc: numpy/random/mtrand/mtrand.c
      numpy/random/mtrand/mtrand.c:45472:21: error: no member named 'exc_type' in 'struct _ts'
          *type = tstate->exc_type;
                  ~~~~~~  ^
      numpy/random/mtrand/mtrand.c:45473:22: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
          *value = tstate->exc_value;
                           ^~~~~~~~~
                           curexc_value
      /opt/anaconda3/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
          PyObject *curexc_value;
                    ^
      numpy/random/mtrand/mtrand.c:45474:19: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
          *tb = tstate->exc_traceback;
                        ^~~~~~~~~~~~~
                        curexc_traceback
      /opt/anaconda3/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
          PyObject *curexc_traceback;
                    ^
      numpy/random/mtrand/mtrand.c:45481:24: error: no member named 'exc_type' in 'struct _ts'
          tmp_type = tstate->exc_type;
                     ~~~~~~  ^
      numpy/random/mtrand/mtrand.c:45482:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
          tmp_value = tstate->exc_value;
                              ^~~~~~~~~
                              curexc_value
      /opt/anaconda3/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
          PyObject *curexc_value;
                    ^
      numpy/random/mtrand/mtrand.c:45483:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
          tmp_tb = tstate->exc_traceback;
                           ^~~~~~~~~~~~~
                           curexc_traceback
      /opt/anaconda3/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
          PyObject *curexc_traceback;
                    ^
      numpy/random/mtrand/mtrand.c:45484:13: error: no member named 'exc_type' in 'struct _ts'
          tstate->exc_type = type;
          ~~~~~~  ^
      numpy/random/mtrand/mtrand.c:45485:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
          tstate->exc_value = value;
                  ^~~~~~~~~
                  curexc_value
      /opt/anaconda3/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
          PyObject *curexc_value;
                    ^
      numpy/random/mtrand/mtrand.c:45486:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
          tstate->exc_traceback = tb;
                  ^~~~~~~~~~~~~
                  curexc_traceback
      /opt/anaconda3/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
          PyObject *curexc_traceback;
                    ^
      numpy/random/mtrand/mtrand.c:45541:24: error: no member named 'exc_type' in 'struct _ts'
          tmp_type = tstate->exc_type;
                     ~~~~~~  ^
      numpy/random/mtrand/mtrand.c:45542:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
          tmp_value = tstate->exc_value;
                              ^~~~~~~~~
                              curexc_value
      /opt/anaconda3/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
          PyObject *curexc_value;
                    ^
      numpy/random/mtrand/mtrand.c:45543:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
          tmp_tb = tstate->exc_traceback;
                           ^~~~~~~~~~~~~
                           curexc_traceback
      /opt/anaconda3/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
          PyObject *curexc_traceback;
                    ^
      numpy/random/mtrand/mtrand.c:45544:13: error: no member named 'exc_type' in 'struct _ts'
          tstate->exc_type = local_type;
          ~~~~~~  ^
      numpy/random/mtrand/mtrand.c:45545:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
          tstate->exc_value = local_value;
                  ^~~~~~~~~
                  curexc_value
      /opt/anaconda3/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
          PyObject *curexc_value;
                    ^
      numpy/random/mtrand/mtrand.c:45546:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
          tstate->exc_traceback = local_tb;
                  ^~~~~~~~~~~~~
                  curexc_traceback
      /opt/anaconda3/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
          PyObject *curexc_traceback;
                    ^
      15 errors generated.
      numpy/random/mtrand/mtrand.c:45472:21: error: no member named 'exc_type' in 'struct _ts'
          *type = tstate->exc_type;
                  ~~~~~~  ^
      numpy/random/mtrand/mtrand.c:45473:22: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
          *value = tstate->exc_value;
                           ^~~~~~~~~
                           curexc_value
      /opt/anaconda3/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
          PyObject *curexc_value;
                    ^
      numpy/random/mtrand/mtrand.c:45474:19: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
          *tb = tstate->exc_traceback;
                        ^~~~~~~~~~~~~
                        curexc_traceback
      /opt/anaconda3/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
          PyObject *curexc_traceback;
                    ^
      numpy/random/mtrand/mtrand.c:45481:24: error: no member named 'exc_type' in 'struct _ts'
          tmp_type = tstate->exc_type;
                     ~~~~~~  ^
      numpy/random/mtrand/mtrand.c:45482:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
          tmp_value = tstate->exc_value;
                              ^~~~~~~~~
                              curexc_value
      /opt/anaconda3/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
          PyObject *curexc_value;
                    ^
      numpy/random/mtrand/mtrand.c:45483:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
          tmp_tb = tstate->exc_traceback;
                           ^~~~~~~~~~~~~
                           curexc_traceback
      /opt/anaconda3/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
          PyObject *curexc_traceback;
                    ^
      numpy/random/mtrand/mtrand.c:45484:13: error: no member named 'exc_type' in 'struct _ts'
          tstate->exc_type = type;
          ~~~~~~  ^
      numpy/random/mtrand/mtrand.c:45485:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
          tstate->exc_value = value;
                  ^~~~~~~~~
                  curexc_value
      /opt/anaconda3/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
          PyObject *curexc_value;
                    ^
      numpy/random/mtrand/mtrand.c:45486:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
          tstate->exc_traceback = tb;
                  ^~~~~~~~~~~~~
                  curexc_traceback
      /opt/anaconda3/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
          PyObject *curexc_traceback;
                    ^
      numpy/random/mtrand/mtrand.c:45541:24: error: no member named 'exc_type' in 'struct _ts'
          tmp_type = tstate->exc_type;
                     ~~~~~~  ^
      numpy/random/mtrand/mtrand.c:45542:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
          tmp_value = tstate->exc_value;
                              ^~~~~~~~~
                              curexc_value
      /opt/anaconda3/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
          PyObject *curexc_value;
                    ^
      numpy/random/mtrand/mtrand.c:45543:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
          tmp_tb = tstate->exc_traceback;
                           ^~~~~~~~~~~~~
                           curexc_traceback
      /opt/anaconda3/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
          PyObject *curexc_traceback;
                    ^
      numpy/random/mtrand/mtrand.c:45544:13: error: no member named 'exc_type' in 'struct _ts'
          tstate->exc_type = local_type;
          ~~~~~~  ^
      numpy/random/mtrand/mtrand.c:45545:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
          tstate->exc_value = local_value;
                  ^~~~~~~~~
                  curexc_value
      /opt/anaconda3/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
          PyObject *curexc_value;
                    ^
      numpy/random/mtrand/mtrand.c:45546:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
          tstate->exc_traceback = local_tb;
                  ^~~~~~~~~~~~~
                  curexc_traceback
      /opt/anaconda3/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
          PyObject *curexc_traceback;
                    ^
      15 errors generated.
      error: Command "gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/include -arch x86_64 -I/opt/anaconda3/include -arch x86_64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/anaconda3/include/python3.7m -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.9-x86_64-3.7/numpy/core/src/npymath -c numpy/random/mtrand/mtrand.c -o build/temp.macosx-10.9-x86_64-3.7/numpy/random/mtrand/mtrand.o -MMD -MF build/temp.macosx-10.9-x86_64-3.7/numpy/random/mtrand/mtrand.o.d" failed with exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  WARNING: No metadata found in /opt/anaconda3/lib/python3.7/site-packages
  Rolling back uninstall of numpy
  Moving to /opt/anaconda3/bin/f2py
   from /private/var/folders/g3/nf1886f95tx2q7_rd18rvz380000gp/T/pip-uninstall-gj7qhe8s/f2py
  Moving to /opt/anaconda3/bin/f2py3
   from /private/var/folders/g3/nf1886f95tx2q7_rd18rvz380000gp/T/pip-uninstall-gj7qhe8s/f2py3
  Moving to /opt/anaconda3/bin/f2py3.7
   from /private/var/folders/g3/nf1886f95tx2q7_rd18rvz380000gp/T/pip-uninstall-gj7qhe8s/f2py3.7
  Moving to /opt/anaconda3/lib/python3.7/site-packages/numpy
   from /opt/anaconda3/lib/python3.7/site-packages/~umpy
  Moving to /opt/anaconda3/lib/python3.7/site-packages/numpy-1.18.1-py3.7.egg-info
   from /opt/anaconda3/lib/python3.7/site-packages/~umpy-1.18.1-py3.7.egg-info
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: Ignoring invalid distribution -eq-ann (/opt/anaconda3/lib/python3.7/site-packages)
WARNING: Ignoring invalid distribution -eq-ann (/opt/anaconda3/lib/python3.7/site-packages)
WARNING: Ignoring invalid distribution -eq-ann (/opt/anaconda3/lib/python3.7/site-packages)
WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available.
You should consider upgrading via the '/opt/anaconda3/bin/python -m pip install --upgrade pip' command.
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