Installation issue on Mac OS Sierra - command 'cc' failed with exit status 1

Hi,

I am getting the error below when tying to install nupic for the first time. I have Mac OS Sierra 10.12.6, wondering if anyone can help me out here…

This is doing the easy install, however I then tried doing from source and get the same error when running “pip install -r bindings/py/requirements.txt” for nupic.core

Any help is appreciated, I am desperate to have a play with the amazing HTM algorithms!

Here is full script from command line:

> Last login: Sun Sep  3 10:49:26 on ttys000
JackOldhamsMBP:~ jackoldham$ pip install nupic
Collecting nupic
  Using cached nupic-1.0.2-py2-none-any.whl
Requirement already satisfied: mock==1.0.1 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Requirement already satisfied: PyMySQL==0.6.2 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Requirement already satisfied: pyproj==1.9.3 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Requirement already satisfied: ordereddict==1.1 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Requirement already satisfied: unittest2==0.5.1 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Requirement already satisfied: python-dateutil==2.1 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Requirement already satisfied: pytest-cov==2.5.0 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Requirement already satisfied: pytest==3.0.7 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Requirement already satisfied: prettytable==0.7.2 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Collecting pycapnp==0.5.12; platform_system == "Linux" or platform_system == "Darwin" (from nupic)
  Using cached pycapnp-0.5.12.tar.gz
Requirement already satisfied: validictory==0.9.1 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Collecting asteval==0.9.1 (from nupic)
  Using cached asteval-0.9.1.tar.gz
Requirement already satisfied: pytest-xdist==1.16.0 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Requirement already satisfied: numpy==1.12.1 in ./Library/Python/2.7/lib/python/site-packages (from nupic)
Collecting PyYAML==3.10 (from nupic)
  Using cached PyYAML-3.10.tar.gz
Collecting DBUtils==1.1 (from nupic)
  Using cached DBUtils-1.1.tar.gz
Collecting psutil==1.0.1 (from nupic)
  Using cached psutil-1.0.1.tar.gz
Collecting nupic.bindings==1.0.0 (from nupic)
  Using cached nupic.bindings-1.0.0-cp27-cp27m-macosx_10_11_intel.whl
Collecting coverage==3.7.1 (from nupic)
  Using cached coverage-3.7.1.tar.gz
Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from python-dateutil==2.1->nupic)
Requirement already satisfied: setuptools in /Library/Python/2.7/site-packages (from pytest==3.0.7->nupic)
Requirement already satisfied: py>=1.4.29 in ./Library/Python/2.7/lib/python/site-packages (from pytest==3.0.7->nupic)
Requirement already satisfied: execnet>=1.1 in ./Library/Python/2.7/lib/python/site-packages (from pytest-xdist==1.16.0->nupic)
Requirement already satisfied: apipkg>=1.4 in ./Library/Python/2.7/lib/python/site-packages (from execnet>=1.1->pytest-xdist==1.16.0->nupic)
Installing collected packages: pycapnp, asteval, PyYAML, DBUtils, psutil, nupic.bindings, coverage, nupic
  Running setup.py install for pycapnp ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T/pip-build-xFzFxe/pycapnp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T/pip-GOE2K5-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.12-intel-2.7
    creating build/lib.macosx-10.12-intel-2.7/capnp
    copying capnp/__init__.py -> build/lib.macosx-10.12-intel-2.7/capnp
    copying capnp/_gen.py -> build/lib.macosx-10.12-intel-2.7/capnp
    copying capnp/version.py -> build/lib.macosx-10.12-intel-2.7/capnp
    copying capnp/__init__.pxd -> build/lib.macosx-10.12-intel-2.7/capnp
    copying capnp/c++.capnp -> build/lib.macosx-10.12-intel-2.7/capnp
    copying capnp/schema.capnp -> build/lib.macosx-10.12-intel-2.7/capnp
    creating build/lib.macosx-10.12-intel-2.7/capnp/helpers
    copying capnp/helpers/__init__.pxd -> build/lib.macosx-10.12-intel-2.7/capnp/helpers
    copying capnp/helpers/helpers.pxd -> build/lib.macosx-10.12-intel-2.7/capnp/helpers
    copying capnp/helpers/non_circular.pxd -> build/lib.macosx-10.12-intel-2.7/capnp/helpers
    copying capnp/helpers/asyncHelper.h -> build/lib.macosx-10.12-intel-2.7/capnp/helpers
    copying capnp/helpers/capabilityHelper.h -> build/lib.macosx-10.12-intel-2.7/capnp/helpers
    copying capnp/helpers/checkCompiler.h -> build/lib.macosx-10.12-intel-2.7/capnp/helpers
    copying capnp/helpers/fixMaybe.h -> build/lib.macosx-10.12-intel-2.7/capnp/helpers
    copying capnp/helpers/rpcHelper.h -> build/lib.macosx-10.12-intel-2.7/capnp/helpers
    copying capnp/helpers/serialize.h -> build/lib.macosx-10.12-intel-2.7/capnp/helpers
    creating build/lib.macosx-10.12-intel-2.7/capnp/includes
    copying capnp/includes/__init__.pxd -> build/lib.macosx-10.12-intel-2.7/capnp/includes
    copying capnp/includes/capnp_cpp.pxd -> build/lib.macosx-10.12-intel-2.7/capnp/includes
    copying capnp/includes/schema_cpp.pxd -> build/lib.macosx-10.12-intel-2.7/capnp/includes
    copying capnp/includes/types.pxd -> build/lib.macosx-10.12-intel-2.7/capnp/includes
    creating build/lib.macosx-10.12-intel-2.7/capnp/lib
    copying capnp/lib/__init__.pxd -> build/lib.macosx-10.12-intel-2.7/capnp/lib
    copying capnp/lib/capnp.pxd -> build/lib.macosx-10.12-intel-2.7/capnp/lib
    copying capnp/lib/__init__.py -> build/lib.macosx-10.12-intel-2.7/capnp/lib
    copying capnp/lib/pickle_helper.py -> build/lib.macosx-10.12-intel-2.7/capnp/lib
    copying capnp/lib/capnp.pyx -> build/lib.macosx-10.12-intel-2.7/capnp/lib
    creating build/lib.macosx-10.12-intel-2.7/capnp/templates
    copying capnp/templates/module.pyx -> build/lib.macosx-10.12-intel-2.7/capnp/templates
    copying capnp/templates/setup.py.tmpl -> build/lib.macosx-10.12-intel-2.7/capnp/templates
    running build_ext
    creating var
    creating var/folders
    creating var/folders/5y
    creating var/folders/5y/zwlff5015jzbx6jj441k21k80000gn
    creating var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T
    creating var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T/tmpDokHCy
    cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -c /var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T/tmpDokHCy/vers.cpp -o var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T/tmpDokHCy/vers.o --std=c++11
    cc -undefined dynamic_lookup var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T/tmpDokHCy/vers.o -o /var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T/tmpDokHCy/vers
    building 'capnp.lib.capnp' extension
    creating build/temp.macosx-10.12-intel-2.7
    creating build/temp.macosx-10.12-intel-2.7/capnp
    creating build/temp.macosx-10.12-intel-2.7/capnp/lib
    cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c capnp/lib/capnp.cpp -o build/temp.macosx-10.12-intel-2.7/capnp/lib/capnp.o --std=c++11
    In file included from capnp/lib/capnp.cpp:285:
    ./capnp/helpers/capabilityHelper.h:94:20: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            int line = PyInt_AsLong(py_line);
                ~~~~   ^~~~~~~~~~~~~~~~~~~~~
    In file included from capnp/lib/capnp.cpp:286:
    ./capnp/helpers/rpcHelper.h:42:19: warning: 'restore' is deprecated: Please transition to using a bootstrap interface instead. [-Wdeprecated-declarations]
        return client.restore(hostId, objectId.getRoot<capnp::AnyPointer>());
                      ^
    /usr/local/include/capnp/rpc.h:101:22: note: 'restore' has been explicitly marked deprecated here
      Capability::Client restore(typename VatId::Reader hostId, AnyPointer::Reader objectId)
                         ^
    In file included from capnp/lib/capnp.cpp:286:
    ./capnp/helpers/rpcHelper.h:49:19: warning: 'restore' is deprecated: Please transition to using a bootstrap interface instead. [-Wdeprecated-declarations]
        return client.restore(hostId, objectId.getRoot<capnp::AnyPointer>());
                      ^
    /usr/local/include/capnp/rpc.h:101:22: note: 'restore' has been explicitly marked deprecated here
      Capability::Client restore(typename VatId::Reader hostId, AnyPointer::Reader objectId)
                         ^
    In file included from capnp/lib/capnp.cpp:286:
    ./capnp/helpers/rpcHelper.h:56:19: warning: 'restore' is deprecated: Please transition to using a bootstrap interface instead. [-Wdeprecated-declarations]
        return client.restore(hostId, objectId);
                      ^
    /usr/local/include/capnp/rpc.h:101:22: note: 'restore' has been explicitly marked deprecated here
      Capability::Client restore(typename VatId::Reader hostId, AnyPointer::Reader objectId)
                         ^
    In file included from capnp/lib/capnp.cpp:286:
    ./capnp/helpers/rpcHelper.h:63:19: warning: 'restore' is deprecated: Please transition to using a bootstrap interface instead. [-Wdeprecated-declarations]
        return client.restore(hostId, objectId);
                      ^
    /usr/local/include/capnp/rpc.h:101:22: note: 'restore' has been explicitly marked deprecated here
      Capability::Client restore(typename VatId::Reader hostId, AnyPointer::Reader objectId)
                         ^
    In file included from capnp/lib/capnp.cpp:286:
    ./capnp/helpers/rpcHelper.h:73:19: warning: 'restore' is deprecated: Please transition to using a bootstrap interface instead. [-Wdeprecated-declarations]
        return client.restore(hostId, objectId);
                      ^
    /usr/local/include/capnp/rpc.h:101:22: note: 'restore' has been explicitly marked deprecated here
      Capability::Client restore(typename VatId::Reader hostId, AnyPointer::Reader objectId)
                         ^
    In file included from capnp/lib/capnp.cpp:286:
    ./capnp/helpers/rpcHelper.h:107:19: warning: 'makeRpcServer<capnp::rpc::twoparty::VatId, capnp::AnyPointer, capnp::rpc::twoparty::ProvisionId, capnp::rpc::twoparty::RecipientId, capnp::rpc::twoparty::ThirdPartyCapId, capnp::rpc::twoparty::JoinResult>' is deprecated: Please transition to using a bootstrap interface instead. [-Wdeprecated-declarations]
            rpcSystem(makeRpcServer(network, restorer)) {}
                      ^
    /usr/local/include/capnp/rpc.h:513:18: note: 'makeRpcServer<capnp::rpc::twoparty::VatId, capnp::AnyPointer, capnp::rpc::twoparty::ProvisionId, capnp::rpc::twoparty::RecipientId, capnp::rpc::twoparty::ThirdPartyCapId, capnp::rpc::twoparty::JoinResult>' has been explicitly marked deprecated here
    RpcSystem<VatId> makeRpcServer(
                     ^
    capnp/lib/capnp.cpp:10774:115: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'uint' (aka 'unsigned int') [-Wshorten-64-to-32]
      __pyx_t_2 = __pyx_f_5capnp_3lib_5capnp_to_python_reader((( ::capnp::DynamicValue::Reader)(__pyx_v_self->thisptr[__pyx_v_index])), __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                ~~~~~~~~~~~~          ^~~~~~~~~~~~~
    capnp/lib/capnp.cpp:12816:117: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'uint' (aka 'unsigned int') [-Wshorten-64-to-32]
      __pyx_t_2 = __pyx_f_5capnp_3lib_5capnp_to_python_builder((( ::capnp::DynamicValue::Builder)(__pyx_v_self->thisptr[__pyx_v_index])), __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                  ~~~~~~~~~~~~          ^~~~~~~~~~~~~
    capnp/lib/capnp.cpp:16308:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'uint' (aka 'unsigned int') [-Wshorten-64-to-32]
          __pyx_t_11 = __pyx_v_thisptr.init(__pyx_t_7, __pyx_t_10);
                                       ~~~~            ^~~~~~~~~~
    capnp/lib/capnp.cpp:16354:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'uint' (aka 'unsigned int') [-Wshorten-64-to-32]
          __pyx_t_11 = __pyx_v_thisptr.init(__pyx_t_7, __pyx_t_10);
                                       ~~~~            ^~~~~~~~~~
    capnp/lib/capnp.cpp:17067:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'uint' (aka 'unsigned int') [-Wshorten-64-to-32]
          __pyx_t_11 = __pyx_v_thisptr.init(__pyx_t_7, __pyx_t_10);
                                       ~~~~            ^~~~~~~~~~
    capnp/lib/capnp.cpp:17113:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'uint' (aka 'unsigned int') [-Wshorten-64-to-32]
          __pyx_t_11 = __pyx_v_thisptr.init(__pyx_t_7, __pyx_t_10);
                                       ~~~~            ^~~~~~~~~~
    capnp/lib/capnp.cpp:17842:53: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'uint' (aka 'unsigned int') [-Wshorten-64-to-32]
          __pyx_t_12 = __pyx_v_thisptr.init(__pyx_t_10, __pyx_t_11);
                                       ~~~~             ^~~~~~~~~~
    capnp/lib/capnp.cpp:18563:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'uint' (aka 'unsigned int') [-Wshorten-64-to-32]
          __pyx_t_11 = __pyx_v_thisptr.init(__pyx_t_7, __pyx_t_10);
                                       ~~~~            ^~~~~~~~~~
    capnp/lib/capnp.cpp:31214:294: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
        __pyx_t_1 = ((struct __pyx_vtabstruct_5capnp_3lib_5capnp__DynamicStructPipeline *)((struct __pyx_obj_5capnp_3lib_5capnp__DynamicStructPipeline *)__pyx_t_3)->__pyx_vtab)->_init(((struct __pyx_obj_5capnp_3lib_5capnp__DynamicStructPipeline *)__pyx_t_3), new  ::capnp::DynamicStruct::Pipeline(std::move((( ::capnp::DynamicValue::Pipeline)__pyx_v_self->thisptr->get(__pyx_t_6)).releaseAs< ::capnp::DynamicStruct>())), __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                                                                                                                                                                         ^
    capnp/lib/capnp.cpp:31214:294: note: remove std::move call here
        __pyx_t_1 = ((struct __pyx_vtabstruct_5capnp_3lib_5capnp__DynamicStructPipeline *)((struct __pyx_obj_5capnp_3lib_5capnp__DynamicStructPipeline *)__pyx_t_3)->__pyx_vtab)->_init(((struct __pyx_obj_5capnp_3lib_5capnp__DynamicStructPipeline *)__pyx_t_3), new  ::capnp::DynamicStruct::Pipeline(std::move((( ::capnp::DynamicValue::Pipeline)__pyx_v_self->thisptr->get(__pyx_t_6)).releaseAs< ::capnp::DynamicStruct>())), __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                                                                                                                                                                         ^~~~~~~~~~                                                                                                              ~
    capnp/lib/capnp.cpp:35029:53: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
      __pyx_v_self->thisptr = new  ::kj::AsyncIoContext(std::move( ::kj::setupAsyncIo()));
                                                        ^
    capnp/lib/capnp.cpp:35029:53: note: remove std::move call here
      __pyx_v_self->thisptr = new  ::kj::AsyncIoContext(std::move( ::kj::setupAsyncIo()));
                                                        ^~~~~~~~~~                     ~
    capnp/lib/capnp.cpp:35582:259: error: no matching conversion for functional-style cast from 'int64_t' (aka 'long long') to '::kj::Duration' (aka 'Quantity<long long, kj::_::NanosecondLabel>')
      __pyx_t_2 = ((struct __pyx_vtabstruct_5capnp_3lib_5capnp__VoidPromise *)((struct __pyx_obj_5capnp_3lib_5capnp__VoidPromise *)__pyx_t_1)->__pyx_vtab)->_init(((struct __pyx_obj_5capnp_3lib_5capnp__VoidPromise *)__pyx_t_1), __pyx_v_self->thisptr->afterDelay( ::kj::Duration(__pyx_t_6)), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1691; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/include/kj/units.h:198:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int64_t' (aka 'long long') to 'const kj::Quantity<long long, kj::_::NanosecondLabel>' for 1st argument
    class Quantity {
          ^
    /usr/local/include/kj/units.h:198:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int64_t' (aka 'long long') to 'kj::Quantity<long long, kj::_::NanosecondLabel>' for 1st argument
    /usr/local/include/kj/units.h:247:20: note: candidate constructor not viable: no known conversion from 'int64_t' (aka 'long long') to 'kj::MaxValue_' for 1st argument
      inline constexpr Quantity(MaxValue_): value(maxValue) {}
                       ^
    /usr/local/include/kj/units.h:248:20: note: candidate constructor not viable: no known conversion from 'int64_t' (aka 'long long') to 'kj::MinValue_' for 1st argument
      inline constexpr Quantity(MinValue_): value(minValue) {}
                       ^
    /usr/local/include/kj/units.h:259:20: note: candidate template ignored: could not match 'Quantity<type-parameter-0-0, kj::_::NanosecondLabel>' against 'long long'
      inline constexpr Quantity(const Quantity<OtherNumber, Unit>& other)
                       ^
    /usr/local/include/kj/units.h:245:20: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
      inline constexpr Quantity() = default;
                       ^
    /usr/local/include/kj/units.h:254:20: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
      inline constexpr Quantity(Number value, decltype(unsafe)): value(value) {}
                       ^
    capnp/lib/capnp.cpp:41916:294: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
        __pyx_t_1 = ((struct __pyx_vtabstruct_5capnp_3lib_5capnp__DynamicStructPipeline *)((struct __pyx_obj_5capnp_3lib_5capnp__DynamicStructPipeline *)__pyx_t_3)->__pyx_vtab)->_init(((struct __pyx_obj_5capnp_3lib_5capnp__DynamicStructPipeline *)__pyx_t_3), new  ::capnp::DynamicStruct::Pipeline(std::move((( ::capnp::DynamicValue::Pipeline)__pyx_v_self->thisptr->get(__pyx_t_6)).releaseAs< ::capnp::DynamicStruct>())), __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1973; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                                                                                                                                                                         ^
    capnp/lib/capnp.cpp:41916:294: note: remove std::move call here
        __pyx_t_1 = ((struct __pyx_vtabstruct_5capnp_3lib_5capnp__DynamicStructPipeline *)((struct __pyx_obj_5capnp_3lib_5capnp__DynamicStructPipeline *)__pyx_t_3)->__pyx_vtab)->_init(((struct __pyx_obj_5capnp_3lib_5capnp__DynamicStructPipeline *)__pyx_t_3), new  ::capnp::DynamicStruct::Pipeline(std::move((( ::capnp::DynamicValue::Pipeline)__pyx_v_self->thisptr->get(__pyx_t_6)).releaseAs< ::capnp::DynamicStruct>())), __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1973; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                                                                                                                                                                         ^~~~~~~~~~                                                                                                              ~
    capnp/lib/capnp.cpp:51507:104: warning: 'makeRpcServer<capnp::rpc::twoparty::VatId, capnp::AnyPointer, capnp::rpc::twoparty::ProvisionId, capnp::rpc::twoparty::RecipientId, capnp::rpc::twoparty::ThirdPartyCapId, capnp::rpc::twoparty::JoinResult>' is deprecated: Please transition to using a bootstrap interface instead. [-Wdeprecated-declarations]
          __pyx_v_self->thisptr = new  ::capnp::RpcSystem<capnp::rpc::twoparty::SturdyRefHostId>( ::capnp::makeRpcServer((*__pyx_v_self->_network->thisptr), (*__pyx_v_self->_restorer->thisptr)));
                                                                                                           ^
    /usr/local/include/capnp/rpc.h:513:18: note: 'makeRpcServer<capnp::rpc::twoparty::VatId, capnp::AnyPointer, capnp::rpc::twoparty::ProvisionId, capnp::rpc::twoparty::RecipientId, capnp::rpc::twoparty::ThirdPartyCapId, capnp::rpc::twoparty::JoinResult>' has been explicitly marked deprecated here
    RpcSystem<VatId> makeRpcServer(
                     ^
    capnp/lib/capnp.cpp:54874:39: warning: 'getDependency' is deprecated: Does not handle generics correctly. [-Wdeprecated-declarations]
        __pyx_t_8 = __pyx_v_self->thisptr.getDependency(__pyx_t_7);
                                          ^
    /usr/local/include/capnp/schema.h:767:23: note: 'getDependency' has been explicitly marked deprecated here
    inline Schema Schema::getDependency(uint64_t id) const {
                          ^
    capnp/lib/capnp.cpp:56576:39: warning: 'getDependency' is deprecated: Does not handle generics correctly. [-Wdeprecated-declarations]
        __pyx_t_8 = __pyx_v_self->thisptr.getDependency(__pyx_t_7);
                                          ^
    /usr/local/include/capnp/schema.h:767:23: note: 'getDependency' has been explicitly marked deprecated here
    inline Schema Schema::getDependency(uint64_t id) const {
                          ^
    capnp/lib/capnp.cpp:58877:39: warning: 'getDependency' is deprecated: Does not handle generics correctly. [-Wdeprecated-declarations]
        __pyx_t_8 = __pyx_v_self->thisptr.getDependency(__pyx_t_7);
                                          ^
    /usr/local/include/capnp/schema.h:767:23: note: 'getDependency' has been explicitly marked deprecated here
    inline Schema Schema::getDependency(uint64_t id) const {
                          ^
    capnp/lib/capnp.cpp:246:5: warning: destructor called on non-final 'ErrorHandler' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
        x->~T();
        ^
    capnp/lib/capnp.cpp:81903:3: note: in instantiation of function template specialization '__Pyx_call_destructor<ErrorHandler>' requested here
      __Pyx_call_destructor(&p->_error_handler);
      ^
    capnp/lib/capnp.cpp:246:9: note: qualify call to silence this warning
        x->~T();
            ^
            ErrorHandler::
    23 warnings and 1 error generated.
    error: command 'cc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T/pip-build-xFzFxe/pycapnp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T/pip-GOE2K5-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/5y/zwlff5015jzbx6jj441k21k80000gn/T/pip-build-xFzFxe/pycapnp/
JackOldhamsMBP:~ jackoldham$ 

Thanks
Jack

1 Like

You need a C compiler. You can get one by installing XCode command line tools.

Hi Matt

Thanks for the response, just got chance to have another go at this…

I do/did already have command line tools installed, with the user flag I got errors like

"Your compiler supports C++11 but your C++ standard library does not. If your " "system has libc++ installed (as should be the case on e.g. Mac OSX), try adding " “-stdlib=libc++ to your CXXFLAGS.”

Then I tried stuff like this

CXXFLAGS=’-stdlib=libc++’ pip install nupic —user

(and same with CFLAGS and CPPFLAGS) but get similar errors.

Then I took out —user and got this

clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)

And went looking for answers and found this

https://stackoverflow.com/questions/21752172/invalid-deployment-target-for-stdlib-libc-on-osx-10-8https://stackoverflow.com/questions/21752172/invalid-deployment-target-for-stdlib-libc-on-osx-10-8

Which led me to google “clang set deployment target” and I stumble across this!!!

https://github.com/numenta/nupic/issues/2061

And now its worked! Phew! (I’ve been trying to install nupic for a couple of weeks so very relieved!)

Thanks!

1 Like