I don't know, it should be detected. I also don't know why *you* are getting that SSL error, but no one else is reporting it.
You could try a complete compilation from source code, which is typically when you need to compile capnp: https://www.youtube.com/watch?v=sxb_Zrls7Zs --------- Matt Taylor OS Community Flag-Bearer Numenta On Sat, Sep 26, 2015 at 8:51 AM, Richard Godden <[email protected]> wrote: > Dear Matt, > > Thanks for your fast reply I have tried everything you suggested with > minimal success: > > OpenSSL> version > > OpenSSL 0.9.8zg 14 July 2015 > > OpenSSL> quit > > > > which python: > > /usr/local/bin/python > > python --version > > Python 2.7.10 > > > I successfully built and installed capnp with your instructions above > > output after the make install command: > > PASS: capnp-evolution-test > > PASS: src/capnp/compiler/capnp-test.sh > > PASS: capnp-test > > /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive > > make[7]: Nothing to be done for `all-am'. > > ============================================================================ > > Testsuite summary for Capn Proto 0.5.3 > > ============================================================================ > > # TOTAL: 3 > > # PASS: 3 > > # SKIP: 0 > > # XFAIL: 0 > > # FAIL: 0 > > # XPASS: 0 > > # ERROR: 0 > > ============================================================================ > > > final few lines of output after sudo install command: > > build-aux/install-sh -c -d '/usr/local/include/kj/std' > > /usr/bin/install -c -m 644 src/kj/std/iostream.h > '/usr/local/include/kj/std' > > build-aux/install-sh -c -d '/usr/local/lib/pkgconfig' > > /usr/bin/install -c -m 644 capnp.pc capnp-rpc.pc '/usr/local/lib/pkgconfig' > > > However when I run pip install nupic the same error occurs as before: > > > *WARNING* no libcapnp detected. Will download and build it from source now. > If you have C++ Cap'n Proto installed, it may be out of date or is not being > detected. Downloading and building libcapnp may take a while. > > fetching https://capnproto.org/capnproto-c++-0.5.1.2.tar.gz into > /private/var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/pip-build-fC6IG_/pycapnp/bundled > > error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate > verify failed (_ssl.c:590)> > > > Is there something I am missing? do I have to do something to ensure the > version I installed is detected? > > > Thanks, > > Richard > > > On Sat, 26 Sep 2015 at 16:19 Matthew Taylor <[email protected]> wrote: >> >> As part of the installation process, Cap'n Proto will be installed. >> This happens by downloading the capnp source code from >> https://capnproto.org/capnproto-c++-0.5.1.2.tar.gz into a local temp >> directory and compiling it. The error you are seeing is because this >> is an HTTPS url. >> >> Do you have openssl installed? You can check by typing "openssl" on >> the command line to get to an interpreter, then type "version" (and >> "quit" to exit the shell). >> >> Also, what version of python are you using? Run "which python" and >> "python --version". >> >> You can work around this easily by building capnp yourself: >> https://capnproto.org/install.html. Just follow these instructions and >> then try 'pip install nupic' again: >> >> curl -O https://capnproto.org/capnproto-c++-0.5.3.tar.gz >> tar zxf capnproto-c++-0.5.3.tar.gz >> cd capnproto-c++-0.5.3 >> ./configure >> make -j6 check >> sudo make install >> pip install nupic >> >> Thanks, >> --------- >> Matt Taylor >> OS Community Flag-Bearer >> Numenta >> >> >> On Sat, Sep 26, 2015 at 7:56 AM, Richard Godden <[email protected]> >> wrote: >> > Dear all, >> > >> > I am struggling to install nupic for the first time via the comand pip >> > install nupic. The issue seems to be when installing pycapnp. I have >> > also >> > tried pip install pycapnp however a similar issue occurred. Can someone >> > help >> > me with this? >> > >> > Regards >> > >> > Richard >> > >> > Terminal output: >> > >> > Collecting nupic >> > >> > Using cached nupic-0.3.3-py2-none-any.whl >> > >> > Requirement already satisfied (use --upgrade to upgrade): >> > pytest-cov==1.6 in >> > /usr/local/lib/python2.7/site-packages (from nupic) >> > >> > Requirement already satisfied (use --upgrade to upgrade): numpy==1.9.2 >> > in >> > /usr/local/lib/python2.7/site-packages (from nupic) >> > >> > Requirement already satisfied (use --upgrade to upgrade): asteval==0.9.1 >> > in >> > /usr/local/lib/python2.7/site-packages (from nupic) >> > >> > Requirement already satisfied (use --upgrade to upgrade): >> > prettytable==0.7.2 >> > in /usr/local/lib/python2.7/site-packages (from nupic) >> > >> > Requirement already satisfied (use --upgrade to upgrade): pytest==2.5.1 >> > in >> > /usr/local/lib/python2.7/site-packages (from nupic) >> > >> > Requirement already satisfied (use --upgrade to upgrade): psutil==1.0.1 >> > in >> > /usr/local/lib/python2.7/site-packages (from nupic) >> > >> > Collecting pycapnp==0.5.5 (from nupic) >> > >> > Using cached pycapnp-0.5.5.tar.gz >> > >> > Collecting PyYAML==3.10 (from nupic) >> > >> > Using cached PyYAML-3.10.tar.gz >> > >> > Collecting pytest-xdist==1.8 (from nupic) >> > >> > Using cached pytest-xdist-1.8.zip >> > >> > Collecting unittest2==0.5.1 (from nupic) >> > >> > Using cached unittest2-0.5.1.tar.gz >> > >> > Collecting pyproj==1.9.3 (from nupic) >> > >> > Using cached pyproj-1.9.3.tar.gz >> > >> > Collecting DBUtils==1.1 (from nupic) >> > >> > Using cached DBUtils-1.1.tar.gz >> > >> > Collecting python-dateutil==2.1 (from nupic) >> > >> > Using cached python-dateutil-2.1.tar.gz >> > >> > Collecting pillow==2.3.0 (from nupic) >> > >> > Using cached Pillow-2.3.0.zip >> > >> > Collecting nupic.bindings==0.2.1 (from nupic) >> > >> > Using cached nupic.bindings-0.2.1-cp27-none-macosx_10_9_intel.whl >> > >> > Collecting validictory==0.9.1 (from nupic) >> > >> > Using cached validictory-0.9.1.tar.gz >> > >> > Collecting ordereddict==1.1 (from nupic) >> > >> > Using cached ordereddict-1.1.tar.gz >> > >> > Collecting PyMySQL==0.6.2 (from nupic) >> > >> > Using cached PyMySQL-0.6.2-py2.py3-none-any.whl >> > >> > Requirement already satisfied (use --upgrade to upgrade): >> > coverage==3.7.1 in >> > /usr/local/lib/python2.7/site-packages (from nupic) >> > >> > Requirement already satisfied (use --upgrade to upgrade): mock==1.0.1 in >> > /usr/local/lib/python2.7/site-packages (from nupic) >> > >> > Requirement already satisfied (use --upgrade to upgrade): cov-core>=1.6 >> > in >> > /usr/local/lib/python2.7/site-packages (from pytest-cov==1.6->nupic) >> > >> > Requirement already satisfied (use --upgrade to upgrade): py>=1.4.19 in >> > /usr/local/lib/python2.7/site-packages (from pytest==2.5.1->nupic) >> > >> > Collecting execnet>=1.0.8 (from pytest-xdist==1.8->nupic) >> > >> > Using cached execnet-1.4.1-py2.py3-none-any.whl >> > >> > Requirement already satisfied (use --upgrade to upgrade): six in >> > /usr/local/lib/python2.7/site-packages (from >> > python-dateutil==2.1->nupic) >> > >> > Collecting apipkg>=1.4 (from execnet>=1.0.8->pytest-xdist==1.8->nupic) >> > >> > Using cached apipkg-1.4-py2.py3-none-any.whl >> > >> > Installing collected packages: pycapnp, PyYAML, apipkg, execnet, >> > pytest-xdist, unittest2, pyproj, DBUtils, python-dateutil, pillow, >> > nupic.bindings, validictory, ordereddict, PyMySQL, nupic >> > >> > Running setup.py install for pycapnp >> > >> > Complete output from command /usr/local/opt/python/bin/python2.7 -c >> > "import setuptools, >> > >> > tokenize;__file__='/private/var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/pip-build-sPmThM/pycapnp/setup.py';exec(compile(getattr(tokenize, >> > 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, >> > 'exec'))" >> > install --record >> > >> > /var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/pip-PBy9E3-record/install-record.txt >> > --single-version-externally-managed --compile: >> > >> > running install >> > >> > running build >> > >> > running build_py >> > >> > creating build >> > >> > creating build/lib.macosx-10.10-x86_64-2.7 >> > >> > creating build/lib.macosx-10.10-x86_64-2.7/capnp >> > >> > copying capnp/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/capnp >> > >> > copying capnp/_gen.py -> build/lib.macosx-10.10-x86_64-2.7/capnp >> > >> > copying capnp/version.py -> build/lib.macosx-10.10-x86_64-2.7/capnp >> > >> > copying capnp/__init__.pxd -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp >> > >> > copying capnp/c++.capnp -> build/lib.macosx-10.10-x86_64-2.7/capnp >> > >> > copying capnp/schema.capnp -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp >> > >> > creating build/lib.macosx-10.10-x86_64-2.7/capnp/helpers >> > >> > copying capnp/helpers/__init__.pxd -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/helpers >> > >> > copying capnp/helpers/helpers.pxd -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/helpers >> > >> > copying capnp/helpers/non_circular.pxd -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/helpers >> > >> > copying capnp/helpers/asyncHelper.h -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/helpers >> > >> > copying capnp/helpers/capabilityHelper.h -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/helpers >> > >> > copying capnp/helpers/checkCompiler.h -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/helpers >> > >> > copying capnp/helpers/fixMaybe.h -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/helpers >> > >> > copying capnp/helpers/rpcHelper.h -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/helpers >> > >> > copying capnp/helpers/serialize.h -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/helpers >> > >> > creating build/lib.macosx-10.10-x86_64-2.7/capnp/includes >> > >> > copying capnp/includes/__init__.pxd -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/includes >> > >> > copying capnp/includes/capnp_cpp.pxd -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/includes >> > >> > copying capnp/includes/schema_cpp.pxd -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/includes >> > >> > copying capnp/includes/types.pxd -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/includes >> > >> > creating build/lib.macosx-10.10-x86_64-2.7/capnp/lib >> > >> > copying capnp/lib/__init__.pxd -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/lib >> > >> > copying capnp/lib/capnp.pxd -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/lib >> > >> > copying capnp/lib/__init__.py -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/lib >> > >> > copying capnp/lib/pickle_helper.py -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/lib >> > >> > copying capnp/lib/capnp.pyx -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/lib >> > >> > creating build/lib.macosx-10.10-x86_64-2.7/capnp/templates >> > >> > copying capnp/templates/module.pyx -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/templates >> > >> > copying capnp/templates/setup.py.tmpl -> >> > build/lib.macosx-10.10-x86_64-2.7/capnp/templates >> > >> > running build_ext >> > >> > creating var >> > >> > creating var/folders >> > >> > creating var/folders/kc >> > >> > creating var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn >> > >> > creating var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T >> > >> > creating var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/tmp3xgs8z >> > >> > cc -c >> > /var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/tmp3xgs8z/vers.cpp -o >> > var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/tmp3xgs8z/vers.o >> > --std=c++11 >> > >> > >> > >> > /var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/tmp3xgs8z/vers.cpp:4:10: >> > fatal error: 'capnp/common.h' file not found >> > >> > #include "capnp/common.h" >> > >> > ^ >> > >> > 1 error generated. >> > >> > *WARNING* no libcapnp detected. Will download and build it from >> > source >> > now. If you have C++ Cap'n Proto installed, it may be out of date or is >> > not >> > being detected. Downloading and building libcapnp may take a while. >> > >> > fetching https://capnproto.org/capnproto-c++-0.5.1.2.tar.gz into >> > >> > /private/var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/pip-build-sPmThM/pycapnp/bundled >> > >> > error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate >> > verify failed (_ssl.c:590)> >> > >> > >> > >> > ---------------------------------------- >> > >> > Command "/usr/local/opt/python/bin/python2.7 -c "import setuptools, >> > >> > tokenize;__file__='/private/var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/pip-build-sPmThM/pycapnp/setup.py';exec(compile(getattr(tokenize, >> > 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, >> > 'exec'))" >> > install --record >> > >> > /var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/pip-PBy9E3-record/install-record.txt >> > --single-version-externally-managed --compile" failed with error code 1 >> > in >> > >> > /private/var/folders/kc/8x7rh0zn2fsc9fzyd6p1tmg80000gn/T/pip-build-sPmThM/pycapnp >> >
