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