Must be missing a dependency for Nupic installation unit tests

Hi,

Just joining and trying to install Nupic by successfully running the included unit tests. I am receiving this error:

tests/unit/nupic/algorithms/anomaly_likelihood_jeff_test.py:35: in <module>
from nupic.algorithms import anomaly_likelihood as an
src/nupic/algorithms/__init__.py:28: in <module>
from nupic.bindings.algorithms import svm_01, svm_dense
../nupic-env/local/lib/python2.7/site-packages/nupic/bindings/algorithms.py:119: in <module>
from nupic.proto.Cells4_capnp import Cells4Proto
capnp/lib/capnp.pyx:3949: in capnp.lib.capnp._Loader.load_module (capnp/lib/capnp.cpp:75559)
???
capnp/lib/capnp.pyx:3928: in capnp.lib.capnp.load (capnp/lib/capnp.cpp:75047)
???
capnp/lib/capnp.pyx:3251: in capnp.lib.capnp.SchemaParser.load (capnp/lib/capnp.cpp:65948)
???
E   KjException: /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/nupic/proto/RandomProto.capnp:0: failed: Duplicate ID @0x88eaee6db8e1f67c.
E   stack: 0x7fddf42e4178 0x7fddf4205ef9 0x7fddf4205a3a 0x7fddf422ba5a 0x7fddf422bf92 0x7fddf4230386 0x7fddf423047b 0x7fddf423053c 0x7fddf4230584 0x7fddf423eb49 0x7fddf423dd96 0x7fddf4241ffc 0x7fddf4228985 0x7fddf423030e 0x7fddf42295ae 0x7fddf42298b7

This pattern repeats for what looks like every test.

I had no trouble installing the nupic repository into a virtual environment and compiling the code using β€œpip install -e .” . Therefore, I am impressed my system is missing some dependency. I must note that I am installing nupic from master, although I have tried with git tag 1.0.3 with the same results.

Vitals:

Ubuntu: /etc/lsb-release:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

Python version:

Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Build Script:

#!/bin/bash -x

NAME=nupic

WD=$(pwd)
NAMEENV=${NAME}-env

virtualenv ${NAMEENV}
source ${NAMEENV}/bin/activate
pip install --upgrade distribute
pip install -U pip

cd ${WD}
source ${WD}/scripts/env.sh

git clone https://github.com/numenta/nupic

cd ${WD}/${NAME}
pip install -e .

Script Output:

+ NAME=nupic
++ pwd
+ WD=/home/cswanson/devel/Nupic
+ NAMEENV=nupic-env
+ virtualenv nupic-env
New python executable in nupic-env/bin/python
Installing setuptools, pip...done.
+ source nupic-env/bin/activate
++ deactivate nondestructive
++ unset pydoc
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n /bin/bash -o -n '' ']'
++ hash -r
++ '[' -n '' ']'
++ unset VIRTUAL_ENV
++ '[' '!' nondestructive = nondestructive ']'
++ VIRTUAL_ENV=/home/cswanson/devel/Nupic/nupic-env
++ export VIRTUAL_ENV
++ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
++ PATH=/home/cswanson/devel/Nupic/nupic-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
++ export PATH
++ '[' -n '' ']'
++ '[' -z '' ']'
++ _OLD_VIRTUAL_PS1=
++ '[' x '!=' x ']'
+++ basename /home/cswanson/devel/Nupic/nupic-env
++ '[' nupic-env = __ ']'
+++ basename /home/cswanson/devel/Nupic/nupic-env
++ PS1='(nupic-env)'
++ export PS1
++ alias 'pydoc=python -m pydoc'
++ '[' -n /bin/bash -o -n '' ']'
++ hash -r
+ pip install --upgrade distribute
Downloading/unpacking distribute
  Downloading distribute-0.7.3.zip (145kB): 145kB downloaded
  Running setup.py (path:/home/cswanson/devel/Nupic/nupic-env/build/distribute/setup.py) egg_info for package distribute
    
Downloading/unpacking setuptools>=0.7 from https://pypi.python.org/packages/0f/40/b3c98aa32bc91d3d8c573443a29aa482d77268d77132b63f09d8385b21ff/setuptools-37.0.0-py2.py3-none-any.whl#md5=c2b8da5297380cb0acc855c7c514ab2a (from distribute)
  Downloading setuptools-37.0.0-py2.py3-none-any.whl (481kB): 481kB downloaded
Installing collected packages: setuptools, distribute
  Found existing installation: setuptools 2.2
    Uninstalling setuptools:
      Successfully uninstalled setuptools
  Running setup.py install for distribute
    
Successfully installed setuptools distribute
Cleaning up...
+ pip install -U pip
Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Installing collected packages: pip
  Found existing installation: pip 1.5.4
    Uninstalling pip:
      Successfully uninstalled pip
Successfully installed pip
Cleaning up...
+ cd /home/cswanson/devel/Nupic
+ source /home/cswanson/devel/Nupic/scripts/env.sh
++ NAME=nupic
+++ pwd
++ HOME=/home/cswanson/devel/Nupic/nupic-env
+++ pwd
++ PROJECT=/home/cswanson/devel/Nupic/nupic
++ export PATH=/home/cswanson/devel/Nupic/nupic-env/bin:/home/cswanson/devel/Nupic/nupic-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
++ PATH=/home/cswanson/devel/Nupic/nupic-env/bin:/home/cswanson/devel/Nupic/nupic-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
++ export PYTHONPATH=/home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages:/home/cswanson/devel/Nupic/nupic/nupic:/home/cswanson/devel/Nupic/nupic
++ PYTHONPATH=/home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages:/home/cswanson/devel/Nupic/nupic/nupic:/home/cswanson/devel/Nupic/nupic
+ git clone https://github.com/numenta/nupic
Cloning into 'nupic'...
remote: Counting objects: 77019, done.
remote: Total 77019 (delta 0), reused 0 (delta 0), pack-reused 77019
Receiving objects: 100% (77019/77019), 146.12 MiB | 3.70 MiB/s, done.
Resolving deltas: 100% (47357/47357), done.
Checking connectivity... done.
+ cd /home/cswanson/devel/Nupic/nupic
+ pip install -e .
Obtaining file:///home/cswanson/devel/Nupic/nupic
Collecting asteval==0.9.1 (from nupic==1.0.4.dev0)
/home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading asteval-0.9.1.tar.gz
Collecting coverage==3.7.1 (from nupic==1.0.4.dev0)
  Downloading coverage-3.7.1.tar.gz (284kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 286kB 1.9MB/s 
Collecting mock==1.0.1 (from nupic==1.0.4.dev0)
  Downloading mock-1.0.1.zip (861kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 870kB 1.1MB/s 
Collecting ordereddict==1.1 (from nupic==1.0.4.dev0)
  Downloading ordereddict-1.1.tar.gz
Collecting psutil==1.0.1 (from nupic==1.0.4.dev0)
  Downloading psutil-1.0.1.tar.gz (156kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 163kB 3.3MB/s 
Collecting pytest==3.0.7 (from nupic==1.0.4.dev0)
  Downloading pytest-3.0.7-py2.py3-none-any.whl (172kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 174kB 3.2MB/s 
Collecting pytest-cov==2.5.0 (from nupic==1.0.4.dev0)
  Downloading pytest_cov-2.5.0-py2.py3-none-any.whl
Collecting pytest-xdist==1.16.0 (from nupic==1.0.4.dev0)
  Downloading pytest-xdist-1.16.0.tar.gz (88kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 92kB 4.9MB/s 
Collecting python-dateutil==2.1 (from nupic==1.0.4.dev0)
  Downloading python-dateutil-2.1.tar.gz (152kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153kB 3.8MB/s 
Collecting PyYAML==3.10 (from nupic==1.0.4.dev0)
  Downloading PyYAML-3.10.tar.gz (241kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 245kB 2.4MB/s 
Collecting unittest2==0.5.1 (from nupic==1.0.4.dev0)
  Downloading unittest2-0.5.1.zip (78kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 81kB 4.8MB/s 
Collecting validictory==0.9.1 (from nupic==1.0.4.dev0)
  Downloading validictory-0.9.1.tar.gz
Collecting PyMySQL==0.6.2 (from nupic==1.0.4.dev0)
  Downloading PyMySQL-0.6.2-py2.py3-none-any.whl (63kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 71kB 7.4MB/s 
Collecting DBUtils==1.1 (from nupic==1.0.4.dev0)
  Downloading DBUtils-1.1.tar.gz (109kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 112kB 5.3MB/s 
Collecting pyproj==1.9.3 (from nupic==1.0.4.dev0)
  Downloading pyproj-1.9.3.tar.gz (2.7MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.7MB 402kB/s 
Collecting prettytable==0.7.2 (from nupic==1.0.4.dev0)
  Downloading prettytable-0.7.2.zip
Collecting nupic.bindings==1.0.0 (from nupic==1.0.4.dev0)
  Downloading nupic.bindings-1.0.0-cp27-cp27mu-manylinux1_x86_64.whl (3.9MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3.9MB 283kB/s 
Collecting numpy==1.12.1 (from nupic==1.0.4.dev0)
  Downloading numpy-1.12.1-cp27-cp27mu-manylinux1_x86_64.whl (16.5MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16.5MB 70kB/s 
Collecting pycapnp==0.5.12 (from nupic==1.0.4.dev0)
  Downloading pycapnp-0.5.12.tar.gz (454kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 460kB 1.6MB/s 
Requirement already satisfied: setuptools in /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages (from pytest==3.0.7->nupic==1.0.4.dev0)
Collecting py>=1.4.29 (from pytest==3.0.7->nupic==1.0.4.dev0)
  Downloading py-1.5.2-py2.py3-none-any.whl (88kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 92kB 7.4MB/s 
Collecting execnet>=1.1 (from pytest-xdist==1.16.0->nupic==1.0.4.dev0)
  Downloading execnet-1.5.0-py2.py3-none-any.whl
Collecting six (from python-dateutil==2.1->nupic==1.0.4.dev0)
  Downloading six-1.11.0-py2.py3-none-any.whl
Collecting apipkg>=1.4 (from execnet>=1.1->pytest-xdist==1.16.0->nupic==1.0.4.dev0)
  Downloading apipkg-1.4-py2.py3-none-any.whl
Installing collected packages: asteval, coverage, mock, ordereddict, psutil, py, pytest, pytest-cov, apipkg, execnet, pytest-xdist, six, python-dateutil, PyYAML, unittest2, validictory, PyMySQL, DBUtils, pyproj, prettytable, pycapnp, numpy, nupic.bindings, nupic
  Running setup.py install for asteval ... done
  Running setup.py install for coverage ... done
  Running setup.py install for mock ... done
  Running setup.py install for ordereddict ... done
  Running setup.py install for psutil ... done
  Running setup.py install for pytest-xdist ... done
  Running setup.py install for python-dateutil ... done
  Running setup.py install for PyYAML ... done
  Running setup.py install for unittest2 ... done
  Running setup.py install for validictory ... done
  Running setup.py install for DBUtils ... done
  Running setup.py install for pyproj ... done
  Running setup.py install for prettytable ... done
  Running setup.py install for pycapnp ... done
  Running setup.py develop for nupic
Successfully installed DBUtils-1.1 PyMySQL-0.6.2 PyYAML-3.10 apipkg-1.4 asteval-0.9.1 coverage-3.7.1 execnet-1.5.0 mock-1.0.1 numpy-1.12.1 nupic nupic.bindings-1.0.0 ordereddict-1.1 prettytable-0.7.2 psutil-1.0.1 py-1.5.2 pycapnp-0.5.12 pyproj-1.9.3 pytest-3.0.7 pytest-cov-2.5.0 pytest-xdist-1.16.0 python-dateutil-2.1 six-1.11.0 unittest2-0.5.1 validictory-0.9.1
/home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
1 Like

I’ve seen this error before. It is a capnp problem. Are you sure you have capnp installed properly? You might try uninstalling it an re-installing manually?

Thank you for your prompt reply,

I am actually sure I do not have capnp installed.

I did see most of the issues you linked, but they seemed to have clear errors in posted installation logs. Perhaps I could increase verbosity?

However, I did install libcapnp-0.4.0 and capnproto here:

sudo apt-get install libcapnp-0.4.0
sudo apt-get install capnproto

And received the same results after rebuilding:

________________________________________________________________ ERROR collecting tests/unit/nupic/algorithms/anomaly_likelihood_jeff_test.py ________________________________________________________________
tests/unit/nupic/algorithms/anomaly_likelihood_jeff_test.py:35: in <module>
    from nupic.algorithms import anomaly_likelihood as an
src/nupic/algorithms/__init__.py:28: in <module>
    from nupic.bindings.algorithms import svm_01, svm_dense
../nupic-env/local/lib/python2.7/site-packages/nupic/bindings/algorithms.py:119: in <module>
    from nupic.proto.Cells4_capnp import Cells4Proto
capnp/lib/capnp.pyx:3949: in capnp.lib.capnp._Loader.load_module (capnp/lib/capnp.cpp:75559)
    ???
capnp/lib/capnp.pyx:3928: in capnp.lib.capnp.load (capnp/lib/capnp.cpp:75047)
    ???
capnp/lib/capnp.pyx:3251: in capnp.lib.capnp.SchemaParser.load (capnp/lib/capnp.cpp:65948)
    ???
E   KjException: /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/nupic/proto/RandomProto.capnp:0: failed: Duplicate ID @0x88eaee6db8e1f67c.
E   stack: 0x7f17dec26178 0x7f17deb47ef9 0x7f17deb47a3a 0x7f17deb6da5a 0x7f17deb6df92 0x7f17deb72386 0x7f17deb7247b 0x7f17deb7253c 0x7f17deb72584 0x7f17deb80b49 0x7f17deb7fd96 0x7f17deb83ffc 0x7f17deb6a985 0x7f17deb7230e 0x7f17deb6b5ae 0x7f17deb6b8b7

I did find this shared object in lib/python2.7/site-packages/capnp/lib/capnp.so and ran ldd on it:

	linux-vdso.so.1 =>  (0x00007ffd439b3000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f102e04e000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f102de38000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f102dc1a000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f102d855000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f102e83c000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f102d54f000)

But there were no missing dependencies I could see.

This is my gcc version:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)

I suggest you uninstall capnproto & libcapnp-0.4.0 and try compiling and installing from these instructions.

Ok,

I followed your advice and manually compiled capnproto v0.5.3.1 and manually compiled pycapnp v0.5.12. Everything compiles and installs correctly. However, I am still receiving failing unit tests as outlined above.

I feel there is some other probably system level requirement that is impeding the capnproto framework to function properly.

Is there a way to get a pedantic requirements list for an Ubuntu system?

Build output:

+ NAME=nupic
++ pwd
+ WD=/home/cswanson/devel/Nupic
+ NAMEENV=nupic-env
+ export PATH=/usr/local/capnproto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ PATH=/usr/local/capnproto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ export LD_LIBRARY_PATH=/usr/local/capnproto/lib
+ LD_LIBRARY_PATH=/usr/local/capnproto/lib
+ export 'CFLAGS=-pthread -I/usr/local/capnproto/include -L/usr/local/capnproto/lib -lcapnp -lkj -lpthread -lrt'
+ CFLAGS='-pthread -I/usr/local/capnproto/include -L/usr/local/capnproto/lib -lcapnp -lkj -lpthread -lrt'
+ virtualenv nupic-env
New python executable in nupic-env/bin/python
Installing setuptools, pip...done.
+ source nupic-env/bin/activate
++ deactivate nondestructive
++ unset pydoc
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n /bin/bash -o -n '' ']'
++ hash -r
++ '[' -n '' ']'
++ unset VIRTUAL_ENV
++ '[' '!' nondestructive = nondestructive ']'
++ VIRTUAL_ENV=/home/cswanson/devel/Nupic/nupic-env
++ export VIRTUAL_ENV
++ _OLD_VIRTUAL_PATH=/usr/local/capnproto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
++ PATH=/home/cswanson/devel/Nupic/nupic-env/bin:/usr/local/capnproto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
++ export PATH
++ '[' -n '' ']'
++ '[' -z '' ']'
++ _OLD_VIRTUAL_PS1=
++ '[' x '!=' x ']'
+++ basename /home/cswanson/devel/Nupic/nupic-env
++ '[' nupic-env = __ ']'
+++ basename /home/cswanson/devel/Nupic/nupic-env
++ PS1='(nupic-env)'
++ export PS1
++ alias 'pydoc=python -m pydoc'
++ '[' -n /bin/bash -o -n '' ']'
++ hash -r
+ pip install --upgrade distribute
Downloading/unpacking distribute
  Downloading distribute-0.7.3.zip (145kB): 145kB downloaded
  Running setup.py (path:/home/cswanson/devel/Nupic/nupic-env/build/distribute/setup.py) egg_info for package distribute
    
Downloading/unpacking setuptools>=0.7 from https://pypi.python.org/packages/0f/40/b3c98aa32bc91d3d8c573443a29aa482d77268d77132b63f09d8385b21ff/setuptools-37.0.0-py2.py3-none-any.whl#md5=c2b8da5297380cb0acc855c7c514ab2a (from distribute)
  Downloading setuptools-37.0.0-py2.py3-none-any.whl (481kB): 481kB downloaded
Installing collected packages: setuptools, distribute
  Found existing installation: setuptools 2.2
    Uninstalling setuptools:
      Successfully uninstalled setuptools
  Running setup.py install for distribute
    
Successfully installed setuptools distribute
Cleaning up...
+ pip install -U pip
Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Installing collected packages: pip
  Found existing installation: pip 1.5.4
    Uninstalling pip:
      Successfully uninstalled pip
Successfully installed pip
Cleaning up...
+ pip install cython
Collecting cython
  Using cached Cython-0.27.3-cp27-cp27mu-manylinux1_x86_64.whl
Installing collected packages: cython
Successfully installed cython-0.27.3
+ cd /home/cswanson/devel/Nupic
+ pip install requests
Collecting requests
  Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests)
  Using cached idna-2.6-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests)
  Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests)
  Using cached certifi-2017.11.5-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests)
  Using cached chardet-3.0.4-py2.py3-none-any.whl
Installing collected packages: idna, urllib3, certifi, chardet, requests
Successfully installed certifi-2017.11.5 chardet-3.0.4 idna-2.6 requests-2.18.4 urllib3-1.22
+ pip install -v /home/cswanson/devel/Nupic/pycapnp
Processing ./pycapnp
  Running setup.py (path:/tmp/pip-olSsKa-build/setup.py) egg_info for package from file:///home/cswanson/devel/Nupic/pycapnp
    Running command python setup.py egg_info
    Compiling capnp/lib/capnp.pyx because it changed.
    [1/1] Cythonizing capnp/lib/capnp.pyx
    running egg_info
    creating pip-egg-info/pycapnp.egg-info
    writing pip-egg-info/pycapnp.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pycapnp.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pycapnp.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/pycapnp.egg-info/entry_points.txt
    writing manifest file 'pip-egg-info/pycapnp.egg-info/SOURCES.txt'
    reading manifest file 'pip-egg-info/pycapnp.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/pycapnp.egg-info/SOURCES.txt'
  Source in /tmp/pip-olSsKa-build has version 0.5.12, which satisfies requirement pycapnp==0.5.12 from file:///home/cswanson/devel/Nupic/pycapnp
Installing collected packages: pycapnp
  Running setup.py install for pycapnp ...     Running command /home/cswanson/devel/Nupic/nupic-env/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-olSsKa-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-q9gtdZ-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/cswanson/devel/Nupic/nupic-env/include/site/python2.7/pycapnp
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/capnp
    copying capnp/__init__.py -> build/lib.linux-x86_64-2.7/capnp
    copying capnp/_gen.py -> build/lib.linux-x86_64-2.7/capnp
    copying capnp/version.py -> build/lib.linux-x86_64-2.7/capnp
    copying capnp/__init__.pxd -> build/lib.linux-x86_64-2.7/capnp
    copying capnp/schema.capnp -> build/lib.linux-x86_64-2.7/capnp
    copying capnp/c++.capnp -> build/lib.linux-x86_64-2.7/capnp
    creating build/lib.linux-x86_64-2.7/capnp/helpers
    copying capnp/helpers/non_circular.pxd -> build/lib.linux-x86_64-2.7/capnp/helpers
    copying capnp/helpers/helpers.pxd -> build/lib.linux-x86_64-2.7/capnp/helpers
    copying capnp/helpers/__init__.pxd -> build/lib.linux-x86_64-2.7/capnp/helpers
    copying capnp/helpers/serialize.h -> build/lib.linux-x86_64-2.7/capnp/helpers
    copying capnp/helpers/capabilityHelper.h -> build/lib.linux-x86_64-2.7/capnp/helpers
    copying capnp/helpers/checkCompiler.h -> build/lib.linux-x86_64-2.7/capnp/helpers
    copying capnp/helpers/asyncHelper.h -> build/lib.linux-x86_64-2.7/capnp/helpers
    copying capnp/helpers/rpcHelper.h -> build/lib.linux-x86_64-2.7/capnp/helpers
    copying capnp/helpers/fixMaybe.h -> build/lib.linux-x86_64-2.7/capnp/helpers
    creating build/lib.linux-x86_64-2.7/capnp/includes
    copying capnp/includes/capnp_cpp.pxd -> build/lib.linux-x86_64-2.7/capnp/includes
    copying capnp/includes/__init__.pxd -> build/lib.linux-x86_64-2.7/capnp/includes
    copying capnp/includes/types.pxd -> build/lib.linux-x86_64-2.7/capnp/includes
    copying capnp/includes/schema_cpp.pxd -> build/lib.linux-x86_64-2.7/capnp/includes
    creating build/lib.linux-x86_64-2.7/capnp/lib
    copying capnp/lib/capnp.pxd -> build/lib.linux-x86_64-2.7/capnp/lib
    copying capnp/lib/__init__.pxd -> build/lib.linux-x86_64-2.7/capnp/lib
    copying capnp/lib/__init__.py -> build/lib.linux-x86_64-2.7/capnp/lib
    copying capnp/lib/pickle_helper.py -> build/lib.linux-x86_64-2.7/capnp/lib
    copying capnp/lib/capnp.pyx -> build/lib.linux-x86_64-2.7/capnp/lib
    creating build/lib.linux-x86_64-2.7/capnp/templates
    copying capnp/templates/setup.py.tmpl -> build/lib.linux-x86_64-2.7/capnp/templates
    copying capnp/templates/module.pyx -> build/lib.linux-x86_64-2.7/capnp/templates
    running build_ext
    CAUGHT
    creating /tmp/tmpvcS1QX/tmp
    cc -c /tmp/timer_create6G3lrF.c -o /tmp/tmpvcS1QX/tmp/timer_create6G3lrF.o
    cc /tmp/tmpvcS1QX/tmp/timer_create6G3lrF.o -o /tmp/tmpvcS1QX/a.out
    /tmp/tmpvcS1QX/tmp/timer_create6G3lrF.o: In function `main':
    timer_create6G3lrF.c:(.text+0x15): undefined reference to `timer_create'
    collect2: error: ld returned 1 exit status
    creating tmp
    creating tmp/tmpvcS1QX
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -pthread -I/usr/local/capnproto/include -L/usr/local/capnproto/lib -lcapnp -lkj -lpthread -lrt -fPIC -I/usr/local/capnproto/include -c /tmp/tmpvcS1QX/vers.cpp -o tmp/tmpvcS1QX/vers.o --std=c++11
    cc1plus: warning: command line option β€˜-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    x86_64-linux-gnu-gcc -pthread tmp/tmpvcS1QX/vers.o -lrt -o /tmp/tmpvcS1QX/vers
    efile output: 0 vers: 0.5.3

    building 'capnp.lib.capnp' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/capnp
    creating build/temp.linux-x86_64-2.7/capnp/lib
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -pthread -I/usr/local/capnproto/include -L/usr/local/capnproto/lib -lcapnp -lkj -lpthread -lrt -fPIC -I. -I/usr/include/python2.7 -c capnp/lib/capnp.cpp -o build/temp.linux-x86_64-2.7/capnp/lib/capnp.o --std=c++11
    cc1plus: warning: command line option β€˜-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from capnp/lib/capnp.cpp:576:0:
    ./capnp/helpers/rpcHelper.h: In function β€˜capnp::Capability::Client restoreHelper(capnp::RpcSystem<capnp::rpc::twoparty::VatId>&, capnp::MessageBuilder&)’:
    ./capnp/helpers/rpcHelper.h:42:72: warning: β€˜capnp::Capability::Client capnp::RpcSystem<SturdyRefHostId>::restore(typename VatId::Reader, capnp::AnyPointer::Reader) [with VatId = capnp::rpc::twoparty::VatId; typename VatId::Reader = capnp::rpc::twoparty::VatId::Reader]’ is deprecated (declared at /usr/local/capnproto/include/capnp/rpc.h:366) [-Wdeprecated-declarations]
         return client.restore(hostId, objectId.getRoot<capnp::AnyPointer>());
                                                                            ^
    ./capnp/helpers/rpcHelper.h: In function β€˜capnp::Capability::Client restoreHelper(capnp::RpcSystem<capnp::rpc::twoparty::VatId>&, capnp::MessageReader&)’:
    ./capnp/helpers/rpcHelper.h:49:72: warning: β€˜capnp::Capability::Client capnp::RpcSystem<SturdyRefHostId>::restore(typename VatId::Reader, capnp::AnyPointer::Reader) [with VatId = capnp::rpc::twoparty::VatId; typename VatId::Reader = capnp::rpc::twoparty::VatId::Reader]’ is deprecated (declared at /usr/local/capnproto/include/capnp/rpc.h:366) [-Wdeprecated-declarations]
         return client.restore(hostId, objectId.getRoot<capnp::AnyPointer>());
                                                                            ^
    ./capnp/helpers/rpcHelper.h: In function β€˜capnp::Capability::Client restoreHelper(capnp::RpcSystem<capnp::rpc::twoparty::VatId>&, capnp::AnyPointer::Reader&)’:
    ./capnp/helpers/rpcHelper.h:56:43: warning: β€˜capnp::Capability::Client capnp::RpcSystem<SturdyRefHostId>::restore(typename VatId::Reader, capnp::AnyPointer::Reader) [with VatId = capnp::rpc::twoparty::VatId; typename VatId::Reader = capnp::rpc::twoparty::VatId::Reader]’ is deprecated (declared at /usr/local/capnproto/include/capnp/rpc.h:366) [-Wdeprecated-declarations]
         return client.restore(hostId, objectId);
                                               ^
    ./capnp/helpers/rpcHelper.h: In function β€˜capnp::Capability::Client restoreHelper(capnp::RpcSystem<capnp::rpc::twoparty::VatId>&, capnp::AnyPointer::Builder&)’:
    ./capnp/helpers/rpcHelper.h:63:43: warning: β€˜capnp::Capability::Client capnp::RpcSystem<SturdyRefHostId>::restore(typename VatId::Reader, capnp::AnyPointer::Reader) [with VatId = capnp::rpc::twoparty::VatId; typename VatId::Reader = capnp::rpc::twoparty::VatId::Reader]’ is deprecated (declared at /usr/local/capnproto/include/capnp/rpc.h:366) [-Wdeprecated-declarations]
         return client.restore(hostId, objectId);
                                               ^
    ./capnp/helpers/rpcHelper.h: In function β€˜capnp::Capability::Client restoreHelper(capnp::RpcSystem<capnp::rpc::twoparty::VatId>&)’:
    ./capnp/helpers/rpcHelper.h:73:43: warning: β€˜capnp::Capability::Client capnp::RpcSystem<SturdyRefHostId>::restore(typename VatId::Reader, capnp::AnyPointer::Reader) [with VatId = capnp::rpc::twoparty::VatId; typename VatId::Reader = capnp::rpc::twoparty::VatId::Reader]’ is deprecated (declared at /usr/local/capnproto/include/capnp/rpc.h:366) [-Wdeprecated-declarations]
         return client.restore(hostId, objectId);
                                               ^
    ./capnp/helpers/rpcHelper.h: In constructor β€˜ServerContextRestorer::ServerContextRestorer(kj::Own<kj::AsyncIoStream>&&, capnp::SturdyRefRestorer<capnp::AnyPointer>&)’:
    ./capnp/helpers/rpcHelper.h:107:50: warning: β€˜capnp::RpcSystem<VatId> capnp::makeRpcServer(capnp::VatNetwork<VatId, ProvisionId, RecipientId, ThirdPartyCapId, JoinResult>&, capnp::SturdyRefRestorer<LocalSturdyRefObjectId>&) [with VatId = capnp::rpc::twoparty::VatId; LocalSturdyRefObjectId = capnp::AnyPointer; ProvisionId = capnp::rpc::twoparty::ProvisionId; RecipientId = capnp::rpc::twoparty::RecipientId; ThirdPartyCapId = capnp::rpc::twoparty::ThirdPartyCapId; JoinResult = capnp::rpc::twoparty::JoinResult]’ is deprecated (declared at /usr/local/capnproto/include/capnp/rpc.h:391) [-Wdeprecated-declarations]
             rpcSystem(makeRpcServer(network, restorer)) {}
                                                      ^
    capnp/lib/capnp.cpp: In function β€˜int __pyx_pf_5capnp_3lib_5capnp_14TwoPartyServer___init__(__pyx_obj_5capnp_3lib_5capnp_TwoPartyServer*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*)’:
    capnp/lib/capnp.cpp:59189:189: warning: β€˜capnp::RpcSystem<VatId> capnp::makeRpcServer(capnp::VatNetwork<VatId, ProvisionId, RecipientId, ThirdPartyCapId, JoinResult>&, capnp::SturdyRefRestorer<LocalSturdyRefObjectId>&) [with VatId = capnp::rpc::twoparty::VatId; LocalSturdyRefObjectId = capnp::AnyPointer; ProvisionId = capnp::rpc::twoparty::ProvisionId; RecipientId = capnp::rpc::twoparty::RecipientId; ThirdPartyCapId = capnp::rpc::twoparty::ThirdPartyCapId; JoinResult = capnp::rpc::twoparty::JoinResult]’ is deprecated (declared at /usr/local/capnproto/include/capnp/rpc.h:391) [-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)));
                                                                                                                                                                                                 ^
    capnp/lib/capnp.cpp: In function β€˜PyObject* __pyx_f_5capnp_3lib_5capnp_7_Schema_get_dependency(__pyx_obj_5capnp_3lib_5capnp__Schema*, PyObject*, int)’:
    capnp/lib/capnp.cpp:63075:62: warning: β€˜capnp::Schema capnp::Schema::getDependency(uint64_t) const’ is deprecated (declared at /usr/local/capnproto/include/capnp/schema.h:751) [-Wdeprecated-declarations]
         __pyx_t_7 = __pyx_v_self->thisptr.getDependency(__pyx_t_6);
                                                                  ^
    capnp/lib/capnp.cpp: In function β€˜PyObject* __pyx_f_5capnp_3lib_5capnp_13_StructSchema_get_dependency(__pyx_obj_5capnp_3lib_5capnp__StructSchema*, PyObject*, int)’:
    capnp/lib/capnp.cpp:64889:62: warning: β€˜capnp::Schema capnp::Schema::getDependency(uint64_t) const’ is deprecated (declared at /usr/local/capnproto/include/capnp/schema.h:751) [-Wdeprecated-declarations]
         __pyx_t_7 = __pyx_v_self->thisptr.getDependency(__pyx_t_6);
                                                                  ^
    capnp/lib/capnp.cpp: In function β€˜PyObject* __pyx_f_5capnp_3lib_5capnp_16_InterfaceSchema_get_dependency(__pyx_obj_5capnp_3lib_5capnp__InterfaceSchema*, PyObject*, int)’:
    capnp/lib/capnp.cpp:67552:62: warning: β€˜capnp::Schema capnp::Schema::getDependency(uint64_t) const’ is deprecated (declared at /usr/local/capnproto/include/capnp/schema.h:751) [-Wdeprecated-declarations]
         __pyx_t_7 = __pyx_v_self->thisptr.getDependency(__pyx_t_6);
                                                                  ^
    c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -pthread -I/usr/local/capnproto/include -L/usr/local/capnproto/lib -lcapnp -lkj -lpthread -lrt build/temp.linux-x86_64-2.7/capnp/lib/capnp.o -lcapnpc -lcapnp-rpc -lcapnp -lkj-async -lkj -o build/lib.linux-x86_64-2.7/capnp/lib/capnp.so
    running install_lib
    creating /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp
    copying build/lib.linux-x86_64-2.7/capnp/schema.capnp -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp
    copying build/lib.linux-x86_64-2.7/capnp/__init__.py -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp
    creating /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/includes
    copying build/lib.linux-x86_64-2.7/capnp/includes/capnp_cpp.pxd -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/includes
    copying build/lib.linux-x86_64-2.7/capnp/includes/__init__.pxd -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/includes
    copying build/lib.linux-x86_64-2.7/capnp/includes/types.pxd -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/includes
    copying build/lib.linux-x86_64-2.7/capnp/includes/schema_cpp.pxd -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/includes
    creating /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/helpers
    copying build/lib.linux-x86_64-2.7/capnp/helpers/serialize.h -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/helpers
    copying build/lib.linux-x86_64-2.7/capnp/helpers/capabilityHelper.h -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/helpers
    copying build/lib.linux-x86_64-2.7/capnp/helpers/non_circular.pxd -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/helpers
    copying build/lib.linux-x86_64-2.7/capnp/helpers/helpers.pxd -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/helpers
    copying build/lib.linux-x86_64-2.7/capnp/helpers/__init__.pxd -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/helpers
    copying build/lib.linux-x86_64-2.7/capnp/helpers/checkCompiler.h -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/helpers
    copying build/lib.linux-x86_64-2.7/capnp/helpers/asyncHelper.h -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/helpers
    copying build/lib.linux-x86_64-2.7/capnp/helpers/rpcHelper.h -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/helpers
    copying build/lib.linux-x86_64-2.7/capnp/helpers/fixMaybe.h -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/helpers
    copying build/lib.linux-x86_64-2.7/capnp/__init__.pxd -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp
    copying build/lib.linux-x86_64-2.7/capnp/_gen.py -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp
    copying build/lib.linux-x86_64-2.7/capnp/c++.capnp -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp
    creating /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/templates
    copying build/lib.linux-x86_64-2.7/capnp/templates/setup.py.tmpl -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/templates
    copying build/lib.linux-x86_64-2.7/capnp/templates/module.pyx -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/templates
    copying build/lib.linux-x86_64-2.7/capnp/version.py -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp
    creating /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/lib
    copying build/lib.linux-x86_64-2.7/capnp/lib/__init__.py -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/lib
    copying build/lib.linux-x86_64-2.7/capnp/lib/capnp.so -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/lib
    copying build/lib.linux-x86_64-2.7/capnp/lib/capnp.pxd -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/lib
    copying build/lib.linux-x86_64-2.7/capnp/lib/capnp.pyx -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/lib
    copying build/lib.linux-x86_64-2.7/capnp/lib/__init__.pxd -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/lib
    copying build/lib.linux-x86_64-2.7/capnp/lib/pickle_helper.py -> /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/lib
    byte-compiling /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/__init__.py to __init__.pyc
    byte-compiling /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/_gen.py to _gen.pyc
    byte-compiling /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/version.py to version.pyc
    byte-compiling /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/lib/__init__.py to __init__.pyc
    byte-compiling /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/capnp/lib/pickle_helper.py to pickle_helper.pyc
    running install_egg_info
    running egg_info
    creating pycapnp.egg-info
    writing pycapnp.egg-info/PKG-INFO
    writing top-level names to pycapnp.egg-info/top_level.txt
    writing dependency_links to pycapnp.egg-info/dependency_links.txt
    writing entry points to pycapnp.egg-info/entry_points.txt
    writing manifest file 'pycapnp.egg-info/SOURCES.txt'
    reading manifest file 'pycapnp.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pycapnp.egg-info/SOURCES.txt'
    Copying pycapnp.egg-info to /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages/pycapnp-0.5.12-py2.7.egg-info
    running install_scripts
    Installing capnpc-cython script to /home/cswanson/devel/Nupic/nupic-env/bin
    writing list of installed files to '/tmp/pip-q9gtdZ-record/install-record.txt'
done
  Removing source in /tmp/pip-olSsKa-build
Successfully installed pycapnp-0.5.12
Cleaning up...
+ cd /home/cswanson/devel/Nupic
+ git clone https://github.com/numenta/nupic
Cloning into 'nupic'...
remote: Counting objects: 77019, done.
remote: Total 77019 (delta 0), reused 0 (delta 0), pack-reused 77019
Receiving objects: 100% (77019/77019), 146.12 MiB | 3.69 MiB/s, done.
Resolving deltas: 100% (47357/47357), done.
Checking connectivity... done.
+ cd /home/cswanson/devel/Nupic/nupic
+ pip install -e .
Obtaining file:///home/cswanson/devel/Nupic/nupic
Collecting asteval==0.9.1 (from nupic==1.0.4.dev0)
  Using cached asteval-0.9.1.tar.gz
Collecting coverage==3.7.1 (from nupic==1.0.4.dev0)
  Using cached coverage-3.7.1.tar.gz
Collecting mock==1.0.1 (from nupic==1.0.4.dev0)
  Using cached mock-1.0.1.zip
Collecting ordereddict==1.1 (from nupic==1.0.4.dev0)
  Using cached ordereddict-1.1.tar.gz
Collecting psutil==1.0.1 (from nupic==1.0.4.dev0)
  Using cached psutil-1.0.1.tar.gz
Collecting pytest==3.0.7 (from nupic==1.0.4.dev0)
  Using cached pytest-3.0.7-py2.py3-none-any.whl
Collecting pytest-cov==2.5.0 (from nupic==1.0.4.dev0)
  Using cached pytest_cov-2.5.0-py2.py3-none-any.whl
Collecting pytest-xdist==1.16.0 (from nupic==1.0.4.dev0)
  Using cached pytest-xdist-1.16.0.tar.gz
Collecting python-dateutil==2.1 (from nupic==1.0.4.dev0)
  Using cached python-dateutil-2.1.tar.gz
Collecting PyYAML==3.10 (from nupic==1.0.4.dev0)
  Using cached PyYAML-3.10.tar.gz
Collecting unittest2==0.5.1 (from nupic==1.0.4.dev0)
  Using cached unittest2-0.5.1.zip
Collecting validictory==0.9.1 (from nupic==1.0.4.dev0)
  Using cached validictory-0.9.1.tar.gz
Collecting PyMySQL==0.6.2 (from nupic==1.0.4.dev0)
  Using cached PyMySQL-0.6.2-py2.py3-none-any.whl
Collecting DBUtils==1.1 (from nupic==1.0.4.dev0)
  Using cached DBUtils-1.1.tar.gz
Collecting pyproj==1.9.3 (from nupic==1.0.4.dev0)
  Using cached pyproj-1.9.3.tar.gz
Collecting prettytable==0.7.2 (from nupic==1.0.4.dev0)
  Using cached prettytable-0.7.2.zip
Collecting nupic.bindings==1.0.0 (from nupic==1.0.4.dev0)
  Using cached nupic.bindings-1.0.0-cp27-cp27mu-manylinux1_x86_64.whl
Collecting numpy==1.12.1 (from nupic==1.0.4.dev0)
  Using cached numpy-1.12.1-cp27-cp27mu-manylinux1_x86_64.whl
Requirement already satisfied: pycapnp==0.5.12 in /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages (from nupic==1.0.4.dev0)
Requirement already satisfied: setuptools in /home/cswanson/devel/Nupic/nupic-env/lib/python2.7/site-packages (from pytest==3.0.7->nupic==1.0.4.dev0)
Collecting py>=1.4.29 (from pytest==3.0.7->nupic==1.0.4.dev0)
  Using cached py-1.5.2-py2.py3-none-any.whl
Collecting execnet>=1.1 (from pytest-xdist==1.16.0->nupic==1.0.4.dev0)
  Using cached execnet-1.5.0-py2.py3-none-any.whl
Collecting six (from python-dateutil==2.1->nupic==1.0.4.dev0)
  Using cached six-1.11.0-py2.py3-none-any.whl
Collecting apipkg>=1.4 (from execnet>=1.1->pytest-xdist==1.16.0->nupic==1.0.4.dev0)
  Using cached apipkg-1.4-py2.py3-none-any.whl
Installing collected packages: asteval, coverage, mock, ordereddict, psutil, py, pytest, pytest-cov, apipkg, execnet, pytest-xdist, six, python-dateutil, PyYAML, unittest2, validictory, PyMySQL, DBUtils, pyproj, prettytable, numpy, nupic.bindings, nupic
  Running setup.py install for asteval ... done
  Running setup.py install for coverage ... done
  Running setup.py install for mock ... done
  Running setup.py install for ordereddict ... done
  Running setup.py install for psutil ... done
  Running setup.py install for pytest-xdist ... done
  Running setup.py install for python-dateutil ... done
  Running setup.py install for PyYAML ... done
  Running setup.py install for unittest2 ... done
  Running setup.py install for validictory ... done
  Running setup.py install for DBUtils ... done
  Running setup.py install for pyproj ... done
  Running setup.py install for prettytable ... done
  Running setup.py develop for nupic
Successfully installed DBUtils-1.1 PyMySQL-0.6.2 PyYAML-3.10 apipkg-1.4 asteval-0.9.1 coverage-3.7.1 execnet-1.5.0 mock-1.0.1 numpy-1.12.1 nupic nupic.bindings-1.0.0 ordereddict-1.1 prettytable-0.7.2 psutil-1.0.1 py-1.5.2 pyproj-1.9.3 pytest-3.0.7 pytest-cov-2.5.0 pytest-xdist-1.16.0 python-dateutil-2.1 six-1.11.0 unittest2-0.5.1 validictory-0.9.1

I think @lscheinkman just showed me this in Bamboo, but now I can’t find it. Luiz, where was that? I think it was in docker.

SOLVED.

I was able to get the tests to run properly as may be seen here:

=================================================================== 709 passed, 17 skipped, 8 xfailed, 5 pytest-warnings in 187.77 seconds ===================================================================

I moved to using a docker container with an Ubuntu 16.04 base image. I still compile capnproto to version 5 using the git respoistory. Otherwise, everything else is pretty vanilla.

I’m putting what worked for me here if it may be helpful for others later.

There are four files (defined below):

Put these files into the same directory.

Build the docker image with this command:

bash BuildNupic.sh

After the image is built, start an instance with this command:

docker run -t -i nupic_unittests:0.0.1 /bin/bash

When inside the conatiner, run these commands to execute the unit tests:

export USER=root
cd /opt/nupic
py.test tests/unit/

Files:

BuildNupic.sh

#!/bin/bash

###############################################################################
# Script to build Nupic docker container for Running Unit Tests
#
# Christopher Swanson, 2017
###############################################################################

if [ -d capnproto ]; then
    rm -rf capnproto
fi

if [ -d nupic ]; then
    rm -rf nupic
fi

git clone https://github.com/sandstorm-io/capnproto.git
git clone https://github.com/numenta/nupic

docker build --tag nupic_unittests:0.0.1 .

Build_capnproto.sh

#!/bin/bash
###############################################################################
# Script to build CapnProto
#
# Christopher Swanson, 2017
###############################################################################

cd /opt/capnproto
git checkout v0.5.3.1
cd /opt/capnproto/c++
autoreconf -i
./configure
make -j6
make install

Build_nupic.sh

#!/bin/bash
###############################################################################
# Script to build nupic for unittest execution
#
# Christopher Swanson, 2017
#
# Note: This builds from the latest commit.  If you need a different tag
#       or commit hash then update the variable below and uncomment the
#       lines that have comments.
###############################################################################

#COMMIT_HASH=

cd /opt/nupic
# git checkout ${COMMIT_HASH}
pip install -e .

Dockerfile

FROM ubuntu:16.04
MAINTAINER Christopher Swanson <cswanson@sysdel.com>

COPY capnproto /opt/capnproto
COPY nupic /opt/nupic
COPY Build_capnproto.sh /opt/capnproto
COPY Build_nupic.sh /opt/nupic

RUN apt-get update && apt-get purge python3
RUN apt-get install -y python-minimal python-pip apt-utils git autoconf make binutils gcc g++ libtool
RUN pip install -U pip
RUN chmod 755 /opt/capnproto/Build_capnproto.sh /opt/nupic/Build_nupic.sh
RUN /opt/capnproto/Build_capnproto.sh
RUN /opt/nupic/Build_nupic.sh
2 Likes