Couple of things you could check for: - `which python`, and `/usr/bin/env python` to make sure that the python binaries in your path are explicitly 2.7 - `python -c 'import sys; print sys.version[:3]'` and ensure that it prints out "2.7" - Check $PYTHONPATH for anything with 2.6 in it. Revise it, or unset it completely before running a build. Same for LD_LIBRARY_PATH, and DYLD_LIBRARY_PATH
Of course, this is all supposed to work out of the box, but it's difficult to anticipate every possible scenario. Assuming you're certain that `python` resolves to 2.7, try this: unset PYTHONPATH unset LD_LIBRARY_PATH unset DYLD_LIBRARY_PATH source $NUPIC/env.sh $NUPIC/cleanbuild.sh Inspect PYTHONPATH, LD_LIBRARY_PATH, and DYLD_LIBRARY_PATH again for references to 2.6 and check again that `python` resolves to 2.7. Then, run $NTA/bin/htmtest again. If/when you find the culprit, can you let us know, or add it to the wiki somewhere? This is a prime candidate for a FAQ entry. On Sep 15, 2013, at 3:35 PM, Ian Danforth <[email protected]> wrote: > All, > > I'm excited to get NuPIC running under 2.7 but I'm having some additional > issues. Specifically I'm getting the following errors running ./bin/htmtest > > Adding a PyNode region... > RuntimeError: module compiled against API version 7 but this version of numpy > is 6 > ERROR: Could not get valid spec for Region: py.TestNode > [/Users/iandanforth/nupic/nta/engine/RegionImplFactory.cpp line 452] > Exception: Could not get valid spec for Region: py.TestNode at: > /Users/iandanforth/nupic/nta/engine/RegionImplFactory.cpp:452 > > The runtime error seems to indicate that there is a version of numpy 1.6 > somewhere on my system, but everywhere I check I see 1.7.1 > > I also have python 2.6 installed, and numpy under 2.6 IS 1.6.1 so I wonder if > there are remaining hard coded pointers to 2.6 that are ignoring the system > path and somehow picking up the older version. > > Thoughts for further debugging are welcome, > > Ian > _______________________________________________ > nupic mailing list > [email protected] > http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org _______________________________________________ nupic mailing list [email protected] http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
