numenta / nupic-legacy

Numenta Platform for Intelligent Computing is an implementation of Hierarchical Temporal Memory (HTM), a theory of intelligence based strictly on the neuroscience of the neocortex.
http://numenta.org/
GNU Affero General Public License v3.0
6.34k stars 1.56k forks source link

have the problem while I install the nupic #3773

Open OPAYA opened 7 years ago

OPAYA commented 7 years ago

Hi, I wanna install nupic for MNIST

but I have a problem while install nupic

 Failed building wheel for pycapnp

Running setup.py clean for pycapnp
Failed to build pycapnp
Installing collected packages: pycapnp
  Running setup.py install for pycapnp ... error
    Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/y9/wt8nw_cd15nd91143grbz0b00000gn/T/pip-build-yp0JEV/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/y9/wt8nw_cd15nd91143grbz0b00000gn/T/pip-ExNEOg-record/install-record.txt --single-version-externally-managed --compile:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/y9/wt8nw_cd15nd91143grbz0b00000gn/T/pip-build-yp0JEV/pycapnp/setup.py", line 92, in <module>
        from Cython.Distutils import build_ext as build_ext_c
    ImportError: No module named Cython.Distutils

    ----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/y9/wt8nw_cd15nd91143grbz0b00000gn/T/pip-build-yp0JEV/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/y9/wt8nw_cd15nd91143grbz0b00000gn/T/pip-ExNEOg-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/y9/wt8nw_cd15nd91143grbz0b00000gn/T/pip-build-yp0JEV/pycapnp/
rhyolight commented 7 years ago

What command are you running to install?

OPAYA commented 7 years ago

I install "pip install nupic --user"

rhyolight commented 7 years ago

What operating system are you using? You might try installing Capnproto manually.

OPAYA commented 7 years ago

I use the Mac OS

rhyolight commented 7 years ago

Are you using the system python that came with Mac OS or did you install Anaconda or homebrew python?

Also what exact OS version?

OPAYA commented 7 years ago

I don't install Anaconda but have a homebrew

My Mac version is 10.12.1

rhyolight commented 7 years ago

Are you sure you have python development headers installed? The thing about "cython" above bothers me. Generally on a Mac, you need to use the system python or else things can go wrong quickly in your environment and it is very hard to debug the problem. Just make sure you have XCode command line tool installed, which should give you python development headers as well.

mohammadriazi commented 6 years ago

I've been trying to install nupic using pip install nupic on a Mac (v10.13 High Sierra). and I receive this error: I have installed Python 2.7 as a virtual environment and all of the requirements are installed. Appreciate your help.

---------------------------------------- Failed building wheel for pycapnp Running setup.py clean for pycapnp Failed to build pycapnp Installing collected packages: pycapnp, nupic.bindings, unittest2, asteval, nupic Found existing installation: pycapnp 0.6.1 Uninstalling pycapnp-0.6.1: Successfully uninstalled pycapnp-0.6.1 Running setup.py install for pycapnp ... error Complete output from command /Users/mohammadriazi/Vpy27/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nm/27rwjb4s1fz5fhx34pbnb_pc0000gn/T/pip-build-jEAZjS/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/nm/27rwjb4s1fz5fhx34pbnb_pc0000gn/T/pip-SSi8Pr-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mohammadriazi/Vpy27/bin/../include/site/python2.7/pycapnp: Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/nm/27rwjb4s1fz5fhx34pbnb_pc0000gn/T/pip-build-jEAZjS/pycapnp/setup.py", line 92, in <module> from Cython.Distutils import build_ext as build_ext_c ImportError: No module named Cython.Distutils

Rolling back uninstall of pycapnp Command "/Users/mohammadriazi/Vpy27/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/nm/27rwjb4s1fz5fhx34pbnb_pc0000gn/T/pip-build-jEAZjS/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/nm/27rwjb4s1fz5fhx34pbnb_pc0000gn/T/pip-SSi8Pr-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mohammadriazi/Vpy27/bin/../include/site/python2.7/pycapnp" failed with error code 1 in /private/var/folders/nm/27rwjb4s1fz5fhx34pbnb_pc0000gn/T/pip-build-jEAZjS/pycapnp/

rhyolight commented 6 years ago

Does this help anyone? https://stackoverflow.com/questions/11108461/python-importerror-cython-distutils

bartwalczak commented 6 years ago

I have the same problem as @mohammadriazi with the same configuration - OS X 10.13, Python 2.7. Compilation of pycapnp fails. I installed Cython, tried installing pycapnp on my own, still fails with the following errors:

Collecting nupic
  Using cached nupic-1.0.3-py2-none-any.whl
Requirement already satisfied: PyYAML==3.10 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from nupic)
Requirement already satisfied: coverage==3.7.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from nupic)
Requirement already satisfied: psutil==1.0.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from nupic)
Requirement already satisfied: DBUtils==1.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from nupic)
Collecting nupic.bindings==1.0.0 (from nupic)
  Using cached nupic.bindings-1.0.0-cp27-cp27m-macosx_10_11_intel.whl
Requirement already satisfied: numpy==1.12.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from nupic)
Collecting validictory==0.9.1 (from nupic)
Requirement already satisfied: pytest-xdist==1.16.0 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from nupic)
Collecting asteval==0.9.1 (from nupic)
Collecting python-dateutil==2.1 (from nupic)
Collecting prettytable==0.7.2 (from nupic)
Requirement already satisfied: pytest==3.0.7 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from nupic)
Collecting unittest2==0.5.1 (from nupic)
Requirement already satisfied: pytest-cov==2.5.0 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from nupic)
Collecting ordereddict==1.1 (from nupic)
Collecting pyproj==1.9.3 (from nupic)
Collecting PyMySQL==0.6.2 (from nupic)
  Using cached PyMySQL-0.6.2-py2.py3-none-any.whl
Collecting pycapnp==0.5.12; platform_system == "Linux" or platform_system == "Darwin" (from nupic)
  Using cached pycapnp-0.5.12.tar.gz
Collecting mock==1.0.1 (from nupic)
Requirement already satisfied: py>=1.4.22 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pytest-xdist==1.16.0->nupic)
Requirement already satisfied: execnet>=1.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pytest-xdist==1.16.0->nupic)
Requirement already satisfied: six in /Users/bart/Library/Python/2.7/lib/python/site-packages (from python-dateutil==2.1->nupic)
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pytest==3.0.7->nupic)
Requirement already satisfied: apipkg>=1.4 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from execnet>=1.1->pytest-xdist==1.16.0->nupic)
Building wheels for collected packages: pycapnp
  Running setup.py bdist_wheel for pycapnp ... error
  Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/pip-build-9dcib9/pycapnp/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 /var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmpnI1YLZpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.6-intel-2.7
  creating build/lib.macosx-10.6-intel-2.7/capnp
  copying capnp/version.py -> build/lib.macosx-10.6-intel-2.7/capnp
  copying capnp/__init__.py -> build/lib.macosx-10.6-intel-2.7/capnp
  copying capnp/_gen.py -> build/lib.macosx-10.6-intel-2.7/capnp
  copying capnp/__init__.pxd -> build/lib.macosx-10.6-intel-2.7/capnp
  copying capnp/schema.capnp -> build/lib.macosx-10.6-intel-2.7/capnp
  copying capnp/c++.capnp -> build/lib.macosx-10.6-intel-2.7/capnp
  creating build/lib.macosx-10.6-intel-2.7/capnp/helpers
  copying capnp/helpers/helpers.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
  copying capnp/helpers/non_circular.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
  copying capnp/helpers/__init__.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
  copying capnp/helpers/rpcHelper.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
  copying capnp/helpers/fixMaybe.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
  copying capnp/helpers/capabilityHelper.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
  copying capnp/helpers/asyncHelper.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
  copying capnp/helpers/checkCompiler.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
  copying capnp/helpers/serialize.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
  creating build/lib.macosx-10.6-intel-2.7/capnp/includes
  copying capnp/includes/types.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/includes
  copying capnp/includes/__init__.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/includes
  copying capnp/includes/schema_cpp.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/includes
  copying capnp/includes/capnp_cpp.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/includes
  creating build/lib.macosx-10.6-intel-2.7/capnp/lib
  copying capnp/lib/capnp.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/lib
  copying capnp/lib/__init__.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/lib
  copying capnp/lib/__init__.py -> build/lib.macosx-10.6-intel-2.7/capnp/lib
  copying capnp/lib/pickle_helper.py -> build/lib.macosx-10.6-intel-2.7/capnp/lib
  copying capnp/lib/capnp.pyx -> build/lib.macosx-10.6-intel-2.7/capnp/lib
  creating build/lib.macosx-10.6-intel-2.7/capnp/templates
  copying capnp/templates/setup.py.tmpl -> build/lib.macosx-10.6-intel-2.7/capnp/templates
  copying capnp/templates/module.pyx -> build/lib.macosx-10.6-intel-2.7/capnp/templates
  running build_ext
  creating var
  creating var/folders
  creating var/folders/7v
  creating var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn
  creating var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T
  creating var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmpB6m7Cs
  /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c /var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmpB6m7Cs/vers.cpp -o var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmpB6m7Cs/vers.o --std=c++11
  /usr/bin/clang -undefined dynamic_lookup var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmpB6m7Cs/vers.o -o /var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmpB6m7Cs/vers
  building 'capnp.lib.capnp' extension
  creating build/temp.macosx-10.6-intel-2.7
  creating build/temp.macosx-10.6-intel-2.7/capnp
  creating build/temp.macosx-10.6-intel-2.7/capnp/lib
  /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c capnp/lib/capnp.cpp -o build/temp.macosx-10.6-intel-2.7/capnp/lib/capnp.o --std=c++11
  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:102:7: note: 'restore' has been explicitly marked deprecated here
        KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
        ^
  /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
      __attribute__((deprecated(reason)))
                     ^
  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:102:7: note: 'restore' has been explicitly marked deprecated here
        KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
        ^
  /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
      __attribute__((deprecated(reason)))
                     ^
  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:102:7: note: 'restore' has been explicitly marked deprecated here
        KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
        ^
  /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
      __attribute__((deprecated(reason)))
                     ^
  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:102:7: note: 'restore' has been explicitly marked deprecated here
        KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
        ^
  /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
      __attribute__((deprecated(reason)))
                     ^
  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:102:7: note: 'restore' has been explicitly marked deprecated here
        KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
        ^
  /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
      __attribute__((deprecated(reason)))
                     ^
  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:199:5: 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
      KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
      ^
  /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
      __attribute__((deprecated(reason)))
                     ^
  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:199:5: 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
      KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
      ^
  /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
      __attribute__((deprecated(reason)))
                     ^
  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:85:43: note: 'getDependency' has been explicitly marked deprecated here
    Schema getDependency(uint64_t id) const KJ_DEPRECATED("Does not handle generics correctly.");
                                            ^
  /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
      __attribute__((deprecated(reason)))
                     ^
  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:85:43: note: 'getDependency' has been explicitly marked deprecated here
    Schema getDependency(uint64_t id) const KJ_DEPRECATED("Does not handle generics correctly.");
                                            ^
  /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
      __attribute__((deprecated(reason)))
                     ^
  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:85:43: note: 'getDependency' has been explicitly marked deprecated here
    Schema getDependency(uint64_t id) const KJ_DEPRECATED("Does not handle generics correctly.");
                                            ^
  /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
      __attribute__((deprecated(reason)))
                     ^
  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::
  14 warnings and 1 error generated.
  error: command '/usr/bin/clang' failed with exit status 1

  ----------------------------------------
  Failed building wheel for pycapnp
  Running setup.py clean for pycapnp
Failed to build pycapnp
Installing collected packages: pycapnp, nupic.bindings, validictory, asteval, python-dateutil, prettytable, unittest2, ordereddict, pyproj, PyMySQL, mock, nupic
  Running setup.py install for pycapnp ... error
    Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/pip-build-9dcib9/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/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/pip-Qp1t0K-record/install-record.txt --single-version-externally-managed --compile:
    Compiling capnp/lib/capnp.pyx because it changed.
    [1/1] Cythonizing capnp/lib/capnp.pyx
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.6-intel-2.7
    creating build/lib.macosx-10.6-intel-2.7/capnp
    copying capnp/version.py -> build/lib.macosx-10.6-intel-2.7/capnp
    copying capnp/__init__.py -> build/lib.macosx-10.6-intel-2.7/capnp
    copying capnp/_gen.py -> build/lib.macosx-10.6-intel-2.7/capnp
    copying capnp/__init__.pxd -> build/lib.macosx-10.6-intel-2.7/capnp
    copying capnp/schema.capnp -> build/lib.macosx-10.6-intel-2.7/capnp
    copying capnp/c++.capnp -> build/lib.macosx-10.6-intel-2.7/capnp
    creating build/lib.macosx-10.6-intel-2.7/capnp/helpers
    copying capnp/helpers/helpers.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
    copying capnp/helpers/non_circular.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
    copying capnp/helpers/__init__.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
    copying capnp/helpers/rpcHelper.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
    copying capnp/helpers/fixMaybe.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
    copying capnp/helpers/capabilityHelper.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
    copying capnp/helpers/asyncHelper.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
    copying capnp/helpers/checkCompiler.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
    copying capnp/helpers/serialize.h -> build/lib.macosx-10.6-intel-2.7/capnp/helpers
    creating build/lib.macosx-10.6-intel-2.7/capnp/includes
    copying capnp/includes/types.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/includes
    copying capnp/includes/__init__.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/includes
    copying capnp/includes/schema_cpp.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/includes
    copying capnp/includes/capnp_cpp.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/includes
    creating build/lib.macosx-10.6-intel-2.7/capnp/lib
    copying capnp/lib/capnp.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/lib
    copying capnp/lib/__init__.pxd -> build/lib.macosx-10.6-intel-2.7/capnp/lib
    copying capnp/lib/__init__.py -> build/lib.macosx-10.6-intel-2.7/capnp/lib
    copying capnp/lib/pickle_helper.py -> build/lib.macosx-10.6-intel-2.7/capnp/lib
    copying capnp/lib/capnp.pyx -> build/lib.macosx-10.6-intel-2.7/capnp/lib
    creating build/lib.macosx-10.6-intel-2.7/capnp/templates
    copying capnp/templates/setup.py.tmpl -> build/lib.macosx-10.6-intel-2.7/capnp/templates
    copying capnp/templates/module.pyx -> build/lib.macosx-10.6-intel-2.7/capnp/templates
    running build_ext
    creating var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmp0uKuBm
    /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c /var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmp0uKuBm/vers.cpp -o var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmp0uKuBm/vers.o --std=c++11
    /usr/bin/clang -undefined dynamic_lookup var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmp0uKuBm/vers.o -o /var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/tmp0uKuBm/vers
    building 'capnp.lib.capnp' extension
    creating build/temp.macosx-10.6-intel-2.7
    creating build/temp.macosx-10.6-intel-2.7/capnp
    creating build/temp.macosx-10.6-intel-2.7/capnp/lib
    /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c capnp/lib/capnp.cpp -o build/temp.macosx-10.6-intel-2.7/capnp/lib/capnp.o --std=c++11
    In file included from capnp/lib/capnp.cpp:576:
    ./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:102:7: note: 'restore' has been explicitly marked deprecated here
          KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
          ^
    /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
        __attribute__((deprecated(reason)))
                       ^
    In file included from capnp/lib/capnp.cpp:576:
    ./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:102:7: note: 'restore' has been explicitly marked deprecated here
          KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
          ^
    /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
        __attribute__((deprecated(reason)))
                       ^
    In file included from capnp/lib/capnp.cpp:576:
    ./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:102:7: note: 'restore' has been explicitly marked deprecated here
          KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
          ^
    /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
        __attribute__((deprecated(reason)))
                       ^
    In file included from capnp/lib/capnp.cpp:576:
    ./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:102:7: note: 'restore' has been explicitly marked deprecated here
          KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
          ^
    /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
        __attribute__((deprecated(reason)))
                       ^
    In file included from capnp/lib/capnp.cpp:576:
    ./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:102:7: note: 'restore' has been explicitly marked deprecated here
          KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
          ^
    /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
        __attribute__((deprecated(reason)))
                       ^
    In file included from capnp/lib/capnp.cpp:576:
    ./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:199:5: 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
        KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
        ^
    /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
        __attribute__((deprecated(reason)))
                       ^
    capnp/lib/capnp.cpp:35831: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_ERR(0, 1491, __pyx_L1_error)
                                                                                                                                                                                                                                                                                                         ^
    capnp/lib/capnp.cpp:35831: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_ERR(0, 1491, __pyx_L1_error)
                                                                                                                                                                                                                                                                                                         ^~~~~~~~~~                                                                                                              ~
    capnp/lib/capnp.cpp:40234: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:40234:53: note: remove std::move call here
      __pyx_v_self->thisptr = new  ::kj::AsyncIoContext(std::move( ::kj::setupAsyncIo()));
                                                        ^~~~~~~~~~                     ~
    capnp/lib/capnp.cpp:40926: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_ERR(0, 1691, __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:48036: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_ERR(0, 1973, __pyx_L1_error)
                                                                                                                                                                                                                                                                                                         ^
    capnp/lib/capnp.cpp:48036: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_ERR(0, 1973, __pyx_L1_error)
                                                                                                                                                                                                                                                                                                         ^~~~~~~~~~                                                                                                              ~
    capnp/lib/capnp.cpp:59189: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:199:5: 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
        KJ_DEPRECATED("Please transition to using a bootstrap interface instead.");
        ^
    /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
        __attribute__((deprecated(reason)))
                       ^
    capnp/lib/capnp.cpp:63075:39: warning: 'getDependency' is deprecated: Does not handle generics correctly. [-Wdeprecated-declarations]
        __pyx_t_7 = __pyx_v_self->thisptr.getDependency(__pyx_t_6);
                                          ^
    /usr/local/include/capnp/schema.h:85:43: note: 'getDependency' has been explicitly marked deprecated here
      Schema getDependency(uint64_t id) const KJ_DEPRECATED("Does not handle generics correctly.");
                                              ^
    /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
        __attribute__((deprecated(reason)))
                       ^
    capnp/lib/capnp.cpp:64889:39: warning: 'getDependency' is deprecated: Does not handle generics correctly. [-Wdeprecated-declarations]
        __pyx_t_7 = __pyx_v_self->thisptr.getDependency(__pyx_t_6);
                                          ^
    /usr/local/include/capnp/schema.h:85:43: note: 'getDependency' has been explicitly marked deprecated here
      Schema getDependency(uint64_t id) const KJ_DEPRECATED("Does not handle generics correctly.");
                                              ^
    /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
        __attribute__((deprecated(reason)))
                       ^
    capnp/lib/capnp.cpp:67552:39: warning: 'getDependency' is deprecated: Does not handle generics correctly. [-Wdeprecated-declarations]
        __pyx_t_7 = __pyx_v_self->thisptr.getDependency(__pyx_t_6);
                                          ^
    /usr/local/include/capnp/schema.h:85:43: note: 'getDependency' has been explicitly marked deprecated here
      Schema getDependency(uint64_t id) const KJ_DEPRECATED("Does not handle generics correctly.");
                                              ^
    /usr/local/include/kj/common.h:192:20: note: expanded from macro 'KJ_DEPRECATED'
        __attribute__((deprecated(reason)))
                       ^
    capnp/lib/capnp.cpp:520: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:97037:3: note: in instantiation of function template specialization '__Pyx_call_destructor<ErrorHandler>' requested here
      __Pyx_call_destructor(p->_error_handler);
      ^
    capnp/lib/capnp.cpp:520:8: note: qualify call to silence this warning
        x.~T();
           ^
           ErrorHandler::
    14 warnings and 1 error generated.
    error: command '/usr/bin/clang' failed with exit status 1

    ----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/pip-build-9dcib9/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/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/pip-Qp1t0K-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/7v/x68mgp4j26v1fc1n46z0z0jw0000gn/T/pip-build-9dcib9/pycapnp/
rhyolight commented 6 years ago

I haven't updated to High Sierra yet, but I'll ask around the office and see if anyone else has run into this problem after upgrading. @scottpurdy ?

scottpurdy commented 6 years ago

@OPAYA and @bartwalczak - this looks like a homebrew-Python-specific issue with pycapnp. You have a few options:

No ideal options, I realize, but we have ran into many issues with C bindings and brewed Python so decided a while back not to support that setup.

bartwalczak commented 6 years ago

I don't think this is brew Python in my case, because I didn't install Python with brew:

brew list

aspcud              geoip               mysql
bro             go              nifi
camlp4              gringo              ocaml
capnp               icu4c               ocamlbuild
clasp               jenv                opam
delve               kops                openssl
docker-machine          kubernetes-cli          pcre
docker-machine-driver-xhyve libev               swig

I tried switching to /usr/local/bin/python, but still the same pycapnp error appears, whether I use CFLAGS to enable stdlib C++11 or not.

bartwalczak commented 6 years ago

What finally worked for me:

brew uninstall capnp
export MACOSX_DEPLOYMENT_TARGET=10.10
CFLAGS='-stdlib=libc++' pip install nupic
scottpurdy commented 6 years ago

@bartwalczak good work finding a fix!