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

test fails on Ubuntu 12.04 & 14.04.3 #2484

Closed sato-cloudian closed 9 years ago

sato-cloudian commented 9 years ago

On Ubuntu 14.04.3, unit, integration, and swarming tests fail. Their logs are available here.

My environment(Ubuntu 14.04.3 Desktop fresh install).

$ git branch -v
* master a4758b5 Merge pull request #2482 from chetan51/issue-2481
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:   trusty

The following commands were executed for installation. No errors occurred.

$ sudo apt-get update
$ sudo apt-get install git python-dev python-pip automake libtool libssl-dev g++ cmake mysql-server libpcre3-dev
$ sudo pip install numpy
$ sudo pip install pytest==2.5.1
$ git clone https://github.com/numenta/nupic.git
$ export NUPIC=$PWD/nupic
$ cd $NUPIC
$ python setup.py install --user
rhyolight commented 9 years ago

Thanks for the bug report.

The unit test error is:

____ ERROR collecting tests/unit/nupic/research/spatial_pooler_unit_test.py ____
tests/unit/nupic/research/spatial_pooler_unit_test.py:41: in <module>
    from nupic.bindings.proto import SpatialPoolerProto_capnp
capnp/lib/capnp.pyx:3773: in capnp.lib.capnp._Loader.load_module (capnp/lib/capnp.cpp:71749)
    ???
capnp/lib/capnp.pyx:3752: in capnp.lib.capnp.load (capnp/lib/capnp.cpp:71239)
    ???
capnp/lib/capnp.pyx:3126: in capnp.lib.capnp.SchemaParser.load (capnp/lib/capnp.cpp:63334)
    ???
E   KjException: /home/tsato/nupic/nupic/bindings/proto/RandomProto.capnp:0: failed: Duplicate ID @0x88eaee6db8e1f67c.
E   stack: 0x7ff9bba0e4c8 0x7ff9bb930369 0x7ff9bb92feaa 0x7ff9bb955eca 0x7ff9bb956402 0x7ff9bb95a7f6 0x7ff9bb95a8eb 0x7ff9bb95a9ac 0x7ff9bb95a9f4 0x7ff9bb968fb9 0x7ff9bb968206 0x7ff9bb96c46c 0x7ff9bb952df5 0x7ff9bb95a77e 0x7ff9bb953a1e 0x7ff9bb953d27
--------------- coverage: platform linux2, python 2.7.6-final-0 ----------------

Which looks like the error reported in https://github.com/numenta/nupic/issues/2113.

The swarming tests failed because you don't have MySQL running (see https://github.com/numenta/nupic/wiki/Running-Swarms#prerequisites)

And the integration tests seem to be running the swarming tests also, which is why they are failing. I think -i runs integration tests without swarming, and -w runs swarming tests alone.

What commands are you using to run tests?

sato-cloudian commented 9 years ago

These are the commands I ran.

# Python unit tests
$NUPIC/scripts/run_nupic_tests -u --coverage

# Python integration tests
$NUPIC/scripts/run_nupic_tests -i --coverage

# Python swarming tests (requires mysql)
$NUPIC/scripts/run_nupic_tests -w --coverage

The swarming tests failed because you don't have MySQL running (see https://github.com/numenta/nupic/wiki/Running-Swarms#prerequisites)

MySQL server was running, but I set my own password for root. By resetting empty, now I was able to move forward. But got another error. Please check the update log on the gist.

rhyolight commented 9 years ago

Ok, will try to replicate on a VM.

rhyolight commented 9 years ago

All unit tests pass for me on Ubuntu 12, but I get 4 integration test failures. These need to be investigated. We are having some other problems with our builds right now, and this could be a symptom. I will keep you updated on what we find.

jcasner commented 9 years ago

I am able to reproduce on Centos 6.5:

____ ERROR collecting tests/unit/nupic/research/spatial_pooler_unit_test.py ____
tests/unit/nupic/research/spatial_pooler_unit_test.py:41: in <module>
    from nupic.bindings.proto import SpatialPoolerProto_capnp
capnp/lib/capnp.pyx:3773: in capnp.lib.capnp._Loader.load_module (capnp/lib/capnp.cpp:71749)
    ???
capnp/lib/capnp.pyx:3752: in capnp.lib.capnp.load (capnp/lib/capnp.cpp:71239)
    ???
capnp/lib/capnp.pyx:3126: in capnp.lib.capnp.SchemaParser.load (capnp/lib/capnp.cpp:63334)
    ???
E   KjException: /opt/numenta/jenkins/workspace/nupic-product-pipeline/build-340/nupic/nupic/bindings/proto/RandomProto.capnp:0: failed: Duplicate ID @0x88eaee6db8e1f67c.
E   stack: 0x7f7747c41a18 0x7f7747b646c9 0x7f7747b64215 0x7f7747b89d0a 0x7f7747b8a242 0x7f7747b8e636 0x7f7747b8e72b 0x7f7747b8e7ec 0x7f7747b8e834 0x7f7747b9cb71 0x7f7747b9bdf6 0x7f7747b9ff83 0x7f7747b86cb8 0x7f7747b8e5be 0x7f7747b878be 0x7f7747b87ba7
______ ERROR collecting tests/unit/nupic/research/temporal_memory_test.py ______
tests/unit/nupic/research/temporal_memory_test.py:32: in <module>
    from nupic.bindings.proto import TemporalMemoryProto_capnp
capnp/lib/capnp.pyx:3773: in capnp.lib.capnp._Loader.load_module (capnp/lib/capnp.cpp:71749)
    ???
capnp/lib/capnp.pyx:3752: in capnp.lib.capnp.load (capnp/lib/capnp.cpp:71239)
    ???
capnp/lib/capnp.pyx:3126: in capnp.lib.capnp.SchemaParser.load (capnp/lib/capnp.cpp:63334)
    ???
E   KjException: /opt/numenta/jenkins/workspace/nupic-product-pipeline/build-340/nupic/nupic/bindings/proto/RandomProto.capnp:0: failed: Duplicate ID @0x88eaee6db8e1f67c.
E   stack: 0x7f7747c41a18 0x7f7747b646c9 0x7f7747b64215 0x7f7747b89d0a 0x7f7747b8a242 0x7f7747b8e636 0x7f7747b8e72b 0x7f7747b8e7ec 0x7f7747b8e834 0x7f7747b9cb71 0x7f7747b9bdf6 0x7f7747b9ff83 0x7f7747b86cb8 0x7f7747b8e5be 0x7f7747b878be 0x7f7747b87ba7
scottpurdy commented 9 years ago

Duplicates #2113