compile error on mac using g++

  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-install-84nekh0c/cpprb/setup.py'"'"'; __file__='"'"'/private/var/folders/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-install-84nekh0c/cpprb/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/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-wheel-lmm9apek
       cwd: /private/var/folders/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-install-84nekh0c/cpprb/
  Complete output (199 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.15-x86_64-3.8
  creating build/lib.macosx-10.15-x86_64-3.8/cpprb
  copying cpprb/util.py -> build/lib.macosx-10.15-x86_64-3.8/cpprb
  copying cpprb/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/cpprb
  running build_ext
  building 'cpprb.PyReplayBuffer' extension
  creating build/temp.macosx-10.15-x86_64-3.8
  creating build/temp.macosx-10.15-x86_64-3.8/cpprb
  /usr/bin/g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8 -I/usr/local/lib/python3.8/site-packages/numpy/core/include -c cpprb/PyReplayBuffer.cpp -o build/temp.macosx-10.15-x86_64-3.8/cpprb/PyReplayBuffer.o -std=c++17 -march=native
  In file included from cpprb/PyReplayBuffer.cpp:651:
  In file included from /usr/local/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4:
  In file included from /usr/local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
  In file included from /usr/local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:
  /usr/local/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
  #warning "Using deprecated NumPy API, disable it with " \
   ^
  cpprb/PyReplayBuffer.cpp:12254:29: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
    __pyx_t_2 = ((__pyx_v_end <= __pyx_v_self->buffer_size) != 0);
                  ~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~
  cpprb/PyReplayBuffer.cpp:13265:42: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
          __pyx_t_2 = ((__pyx_v_stored_end <= __pyx_v_self->buffer_size) != 0);
                        ~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~
  cpprb/PyReplayBuffer.cpp:13818:35: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
    for (__pyx_t_18 = 1; __pyx_t_18 < __pyx_t_16; __pyx_t_18+=1) {
                         ~~~~~~~~~~ ^ ~~~~~~~~~~
  cpprb/PyReplayBuffer.cpp:13829:29: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
      __pyx_t_2 = ((__pyx_v_i <= __pyx_v_add_N) != 0);
                    ~~~~~~~~~ ^  ~~~~~~~~~~~~~
  cpprb/PyReplayBuffer.cpp:41333:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:41429:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:41519:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:41652:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:41829:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:42029:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:42177:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:42292:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:42481:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:42600:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:42861:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:43007:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
    0, /*tp_print*/
    ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  cpprb/PyReplayBuffer.cpp:47738:5: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0,
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
      Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
      ^
  /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
  #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                       ^
  In file included from cpprb/PyReplayBuffer.cpp:661:
  cpprb/ReplayBuffer.hh:48:7: error: no matching member function for call to 'reset'
          view.reset(buffer);
          ~~~~~^~~~~
  cpprb/ReplayBuffer.hh:93:2: note: in instantiation of member function 'ymd::DimensionalBuffer<double>::DimensionalBuffer' requested here
          obs_buffer{size,obs_dim,obs},
          ^
  cpprb/ReplayBuffer.hh:181:9: note: in instantiation of member function 'ymd::Environment<double, double, double, double>::Environment' requested here
        : Env_t{episode_len * Nepisodes,obs_dim,act_dim,rew_dim},
          ^
  cpprb/PyReplayBuffer.cpp:7082:21: note: in instantiation of member function 'ymd::CppSelectiveEnvironment<double, double, double, double>::CppSelectiveEnvironment' requested here
      __pyx_t_4 = new ymd::CppSelectiveEnvironment<double,double,double,double> (__pyx_t_2, __pyx_t_3, __pyx_v_self->__pyx_base.obs_dim, __pyx_v_self->__pyx_base.act_dim, __pyx_v_self->__pyx_base.rew_dim);
                      ^
  /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3807:9: note: candidate template ignored: requirement 'is_convertible<double *, double (*)[]>::value' was not satisfied [with _Yp = double]
          reset(_Yp* __p);
          ^
  /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3815:9: note: candidate function template not viable: requires 2 arguments, but 1 was provided
          reset(_Yp* __p, _Dp __d);
          ^
  /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3823:9: note: candidate function template not viable: requires 3 arguments, but 1 was provided
          reset(_Yp* __p, _Dp __d, _Alloc __a);
          ^
  /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3799:10: note: candidate function not viable: requires 0 arguments, but 1 was provided
      void reset() _NOEXCEPT;
           ^
  In file included from cpprb/PyReplayBuffer.cpp:661:
  In file included from cpprb/ReplayBuffer.hh:18:
  cpprb/SegmentTree.hh:121:7: error: no matching member function for call to 'reset'
          view.reset(buffer);
          ~~~~~^~~~~
  cpprb/ReplayBuffer.hh:376:2: note: in instantiation of member function 'ymd::SegmentTree<float, false>::SegmentTree' requested here
          sum{PowerOf2(buffer_size),[](auto a,auto b){ return a+b; },
          ^
  cpprb/PyReplayBuffer.cpp:20312:21: note: in instantiation of member function 'ymd::CppPrioritizedSampler<float, false>::CppPrioritizedSampler' requested here
      __pyx_t_3 = new ymd::CppPrioritizedSampler<float> (__pyx_t_2, __pyx_t_1);
                      ^
  /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3807:9: note: candidate template ignored: requirement 'is_convertible<float *, float (*)[]>::value' was not satisfied [with _Yp = float]
          reset(_Yp* __p);
          ^
  /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3815:9: note: candidate function template not viable: requires 2 arguments, but 1 was provided
          reset(_Yp* __p, _Dp __d);
          ^
  /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3823:9: note: candidate function template not viable: requires 3 arguments, but 1 was provided
          reset(_Yp* __p, _Dp __d, _Alloc __a);
          ^
  /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3799:10: note: candidate function not viable: requires 0 arguments, but 1 was provided
      void reset() _NOEXCEPT;
           ^
  18 warnings and 2 errors generated.
  error: command '/usr/bin/g++' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for cpprb
WARNING: Error parsing requirements for pyqt5: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/site-packages/PyQt5-5.15.1.dist-info/METADATA'
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-install-84nekh0c/cpprb/setup.py'"'"'; __file__='"'"'/private/var/folders/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-install-84nekh0c/cpprb/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/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-record-rssm0x3d/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/cpprb
         cwd: /private/var/folders/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-install-84nekh0c/cpprb/
    Complete output (199 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.15-x86_64-3.8
    creating build/lib.macosx-10.15-x86_64-3.8/cpprb
    copying cpprb/util.py -> build/lib.macosx-10.15-x86_64-3.8/cpprb
    copying cpprb/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/cpprb
    running build_ext
    building 'cpprb.PyReplayBuffer' extension
    creating build/temp.macosx-10.15-x86_64-3.8
    creating build/temp.macosx-10.15-x86_64-3.8/cpprb
    /usr/bin/g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8 -I/usr/local/lib/python3.8/site-packages/numpy/core/include -c cpprb/PyReplayBuffer.cpp -o build/temp.macosx-10.15-x86_64-3.8/cpprb/PyReplayBuffer.o -std=c++17 -march=native
    In file included from cpprb/PyReplayBuffer.cpp:651:
    In file included from /usr/local/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4:
    In file included from /usr/local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
    In file included from /usr/local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:
    /usr/local/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
    #warning "Using deprecated NumPy API, disable it with " \
     ^
    cpprb/PyReplayBuffer.cpp:12254:29: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
      __pyx_t_2 = ((__pyx_v_end <= __pyx_v_self->buffer_size) != 0);
                    ~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~
    cpprb/PyReplayBuffer.cpp:13265:42: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
            __pyx_t_2 = ((__pyx_v_stored_end <= __pyx_v_self->buffer_size) != 0);
                          ~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~
    cpprb/PyReplayBuffer.cpp:13818:35: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
      for (__pyx_t_18 = 1; __pyx_t_18 < __pyx_t_16; __pyx_t_18+=1) {
                           ~~~~~~~~~~ ^ ~~~~~~~~~~
    cpprb/PyReplayBuffer.cpp:13829:29: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
        __pyx_t_2 = ((__pyx_v_i <= __pyx_v_add_N) != 0);
                      ~~~~~~~~~ ^  ~~~~~~~~~~~~~
    cpprb/PyReplayBuffer.cpp:41333:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:41429:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:41519:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:41652:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:41829:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:42029:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:42177:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:42292:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:42481:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:42600:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:42861:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:43007:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0, /*tp_print*/
      ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    cpprb/PyReplayBuffer.cpp:47738:5: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
        0,
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
        Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
        ^
    /usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    In file included from cpprb/PyReplayBuffer.cpp:661:
    cpprb/ReplayBuffer.hh:48:7: error: no matching member function for call to 'reset'
            view.reset(buffer);
            ~~~~~^~~~~
    cpprb/ReplayBuffer.hh:93:2: note: in instantiation of member function 'ymd::DimensionalBuffer<double>::DimensionalBuffer' requested here
            obs_buffer{size,obs_dim,obs},
            ^
    cpprb/ReplayBuffer.hh:181:9: note: in instantiation of member function 'ymd::Environment<double, double, double, double>::Environment' requested here
          : Env_t{episode_len * Nepisodes,obs_dim,act_dim,rew_dim},
            ^
    cpprb/PyReplayBuffer.cpp:7082:21: note: in instantiation of member function 'ymd::CppSelectiveEnvironment<double, double, double, double>::CppSelectiveEnvironment' requested here
        __pyx_t_4 = new ymd::CppSelectiveEnvironment<double,double,double,double> (__pyx_t_2, __pyx_t_3, __pyx_v_self->__pyx_base.obs_dim, __pyx_v_self->__pyx_base.act_dim, __pyx_v_self->__pyx_base.rew_dim);
                        ^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3807:9: note: candidate template ignored: requirement 'is_convertible<double *, double (*)[]>::value' was not satisfied [with _Yp = double]
            reset(_Yp* __p);
            ^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3815:9: note: candidate function template not viable: requires 2 arguments, but 1 was provided
            reset(_Yp* __p, _Dp __d);
            ^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3823:9: note: candidate function template not viable: requires 3 arguments, but 1 was provided
            reset(_Yp* __p, _Dp __d, _Alloc __a);
            ^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3799:10: note: candidate function not viable: requires 0 arguments, but 1 was provided
        void reset() _NOEXCEPT;
             ^
    In file included from cpprb/PyReplayBuffer.cpp:661:
    In file included from cpprb/ReplayBuffer.hh:18:
    cpprb/SegmentTree.hh:121:7: error: no matching member function for call to 'reset'
            view.reset(buffer);
            ~~~~~^~~~~
    cpprb/ReplayBuffer.hh:376:2: note: in instantiation of member function 'ymd::SegmentTree<float, false>::SegmentTree' requested here
            sum{PowerOf2(buffer_size),[](auto a,auto b){ return a+b; },
            ^
    cpprb/PyReplayBuffer.cpp:20312:21: note: in instantiation of member function 'ymd::CppPrioritizedSampler<float, false>::CppPrioritizedSampler' requested here
        __pyx_t_3 = new ymd::CppPrioritizedSampler<float> (__pyx_t_2, __pyx_t_1);
                        ^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3807:9: note: candidate template ignored: requirement 'is_convertible<float *, float (*)[]>::value' was not satisfied [with _Yp = float]
            reset(_Yp* __p);
            ^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3815:9: note: candidate function template not viable: requires 2 arguments, but 1 was provided
            reset(_Yp* __p, _Dp __d);
            ^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3823:9: note: candidate function template not viable: requires 3 arguments, but 1 was provided
            reset(_Yp* __p, _Dp __d, _Alloc __a);
            ^
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3799:10: note: candidate function not viable: requires 0 arguments, but 1 was provided
        void reset() _NOEXCEPT;
             ^
    18 warnings and 2 errors generated.
    error: command '/usr/bin/g++' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-install-84nekh0c/cpprb/setup.py'"'"'; __file__='"'"'/private/var/folders/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-install-84nekh0c/cpprb/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/pj/_z_nbdy147z9bgshvk4ymm200000gn/T/pip-record-rssm0x3d/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/cpprb Check the logs for full command output.
Assignee Loading
Time tracking Loading