Can you try adding "/usr/local/lib/python2.7/site-packages" to your $PYTHON_PATH environment variable?
export $PYTHON_PATH=/usr/local/lib/python2.7/site-packages:$PYTHON_PATH --------- Matt Taylor OS Community Flag-Bearer Numenta On Tue, Jan 14, 2014 at 10:11 AM, Mhd. Mowafak Allaham <[email protected]> wrote: > Hi, > I installed nupic and followed the instructions for Mac OSX (Mavericks). > Everything was working fine up until I reached the C++ and python tests. The > C++ test went fine, but not the Python test. > (https://github.com/numenta/nupic/tree/master#try-it-out). > > The error I'm getting is: > > Traceback (most recent call last): > > File "bin/run_tests.py", line 32, in <module> > > import pytest > > ImportError: No module named pytest > > > The pytest got installed into the following path: > /usr/local/lib/python2.7/site-packages > > I checked my python path from terminal and I got the following: > > ================================================= > > os.environ['PYTHONPATH'].split(os.pathsep) > > ['/nupic/nta/eng/lib/python2.7/site-packages', ''] > > >>>> import sys > >>>> print sys.path > > ['', '/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg', > '/Library/Python/2.7/site-packages/py2app-0.7.3-py2.7.egg', > '/Library/Python/2.7/site-packages/modulegraph-0.10.4-py2.7.egg', > '/Library/Python/2.7/site-packages/xlutils-1.7.0-py2.7.egg', > '/Library/Python/2.7/site-packages/PyInstaller-2.1-py2.7.egg', > '/Library/Python/2.7/site-packages/distribute-0.7.3-py2.7.egg', > '/Library/Python/2.7/site-packages/setuptools-2.0-py2.7.egg', > '/nupic/nta/eng/lib/python2.7/site-packages', '/private/var/root', > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', > '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', > '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', > '/Library/Python/2.7/site-packages'] > > ================================================= > > > > After contacting Matthew Taylor he suggested that the python packages > installed by pip are not available within my python environment. > > Could you please provide me with some instructions to solve this issue. > > (P.S: $NUPIC/build.sh command ran successfully) > > > Looking forward to hear from you, > > Mowafak > > > _______________________________________________ > 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
