Closed vitaly-krugl closed 9 years ago
CC @oxtopus, @rhyolight
@vitaly-krugl Can you re-install with the latest code / instructions and try running tests again? (The test commands have changed).
@rhyolight: trying it now, will post an update
work-in-progress comments: Build/Install:
git clean -fdx
pip install --user --allow-all-external --allow-unverified PIL --allow-unverified psutil -r external/common/requirements.txt
python setup.py build
python setup.py develop --install-dir=~/Library/Python/2.7/lib/python/site-packages/ --script-dir=~/Library/Python/2.7/bin/
There is a fatal error reported during the build regarding capnp (but the build completes with 0 return code) while running pip install --user -r external/common/requirements.txt
:
/var/folders/kn/xpy4z9wx001_zwmfyzcgxcg40000gp/T/tmpsAym2b/vers.cpp:4:10: fatal error: 'capnp/common.h' file not found
#include "capnp/common.h"
$NUPIC/scripts/run_nupic_tests -u --coverage
failed:
tests/unit/nupic/algorithms/tp10x2_test.py:242: TP10X2Test.testTPs FAILED
/Users/vkruglikov/nta/nupic/tests/unit/nupic/algorithms/tp10x2_test.py:241: running the test CRASHED with signal 11
$NUPIC/scripts/run_nupic_tests -i --coverage
failed:
tests/integration/nupic/algorithms/tp_likelihood_test.py:414: TPLikelihoodTest.testLikelihood1Long FAILED
/Users/vkruglikov/nta/nupic/tests/integration/nupic/algorithms/tp_likelihood_test.py:413: running the test CRASHED with signal 11
'capnp/common.h' file not found
i've seen and reported this one, at least my installation works fine even with this err.
On Tue, Jan 13, 2015 at 8:58 PM, vitaly-krugl notifications@github.com wrote:
work-in-progress comments:
There is a fatal error reported during the build regarding capnp (but the build completes with 0 return code):
/var/folders/kn/xpy4z9wx001_zwmfyzcgxcg40000gp/T/tmpsAym2b/vers.cpp:4:10: fatal error: 'capnp/common.h' file not found #include "capnp/common.h"
— Reply to this email directly or view it on GitHub https://github.com/numenta/nupic/issues/1569#issuecomment-69808943.
Marek Otahal :o)
@scottpurdy Does the error above concern you?
@rhyolight: I tried various cleanups and rebuilds, and am still getting those signal 11 (SIGSEGV) crashes as before. Last time it was on Mac OS X Mavericks, this time on Yosemite
Thanks, @vitaly-krugl. Let's sit down tomorrow so I can take a look.
@vitaly-krugl - I'd like to check out your system. First, I would like to see if pycapnp works after you install from requirements.txt. I am guessing that it falls back to a workaround when you see that fatal error but if it is an actual error then I want to use your machine to figure out #1719
Second, I am suspicious that your environment variables aren't set right. The NuPIC build has been changing fairly frequently and it looks like it may have to do with this. Although some of the things @breznak has been filing make me think there may be a bigger issue (like #1699).
The problem appears to be due to a snarled xcode install on my dev laptop. At the time of the failures, gcc -v
was reporting the LLVM version of 5.x (don't remember the exact value of the x), and App Store was stuck trying to update Xcode to v6.1.1 (it would periodically report "this item is temporarily unavailable"). In an effort to remedy the App Store issue, I dragged /Applications/xcode
to Trash and emptied the Trash folder. After this, gcc -v
started reporting LLVM version 6.0. It appears that the full xcode installation was somehow obscuring the more recent version of command-line developer tools (that might have been installed the other day when I ran xcode-select --install
). I hope this write-up helps someone else who might be running into a similar snafu.
OS: Mac OS-X Mavericks
Python 2.7.5
clang version:gcc version:
I performed a clean build (and repeated several times), resulting in unit and integration test failures:
make python_unit_tests
fails:tests/unit/py2/nupic/algorithms/tp10x2_test.py:242: TP10X2Test.testTPs FAILED
make python_integration_tests
fails:tests/integration/py2/nupic/algorithms/tp_likelihood_test.py:414: TPLikelihoodTest.testLikelihood1Long FAILED
The failures are SIGSEGV in
C++
code in thenta::algorithms
module.I performed the build as follows per instructions on https://github.com/numenta/nupic:
pip install --allow-all-external --allow-unverified PIL --allow-unverified psutil -r external/common/requirements.txt --target ~/Library/Python/2.7/lib/python/site-packages/
cd $NUPIC
git clean -fdx
mkdir -p $NTA/lib/python2.7/site-packages
python setup.py build
python setup.py develop --install-dir="$NTA/lib/python2.7/site-packages"
NOTE1: if I build
nupic.core
manually, and then point nupic to the manually-builtnupic.core
, then the tests pass! (python setup.py develop --install-dir="$NTA/lib/python2.7/site-packages" --cmake_options="-DNUPIC_CORE=/Users/vkruglikov/nta/nupic.core/build/release"
per https://github.com/numenta/nupic/wiki/NuPIC's-Dependency-on-nupic.core)NOTE2: I tried the following build variations and still got the same errors:
python setup.py build
nupic-darwin64
platform repo instead of installing dependencies fromnupic/external/common/requirements.txt
The SIGSEGV occur in
C++
code in thenta::algorithms
module and produce the following dump: