htm-community / nupic.studio

NuPIC Studio is a powerful all­-in-­one tool that allows users create a HTM neural network from scratch, train it, collect statistics, and share it among the members of the community.
GNU General Public License v2.0
94 stars 29 forks source link

Dependency Issue numpy version #20

Open eholly1 opened 9 years ago

eholly1 commented 9 years ago

Was having trouble installing numpy / scipy, so I used the ScipySuperpack to install the whole stack. http://fonnesbeck.github.io/ScipySuperpack/

Before, when I tried to run 'nustudio', it was not even recognizing the install. Now it is, with a different error:


$ nustudio Traceback (most recent call last): File "/usr/local/bin/nustudio", line 5, in from pkg_resources import load_entry_point File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 2876, in

File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 451, in _build_master

File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 464, in _build_from_requirements

File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources.py", line 639, in resolve for dist in self: pkg_resources.DistributionNotFound: numpy==1.8.1


When I run 'pip list', these are the versions that show. Is it a problem that I have numpy 1.9.1, instead of 1.8.1?


$ pip list backports.ssl-match-hostname (3.4.0.2) bokeh (0.6.1) certifi (14.05.14) colorama (0.3.2) Cython (0.21.1) docutils (0.12) Flask (0.10.1) gevent (1.0.1) gevent-websocket (0.9.3) greenlet (0.4.5) ipython (3.0.0-dev) itsdangerous (0.24) Jinja2 (2.7.3) jsonschema (2.4.0) Markdown (2.5.2) MarkupSafe (0.23) numpy (1.9.1) nustudio (1.0.3) pandas (0.15.1) patsy (0.3.0) pip (1.5.6) Pygments (2.0.1) PyOpenGL (3.1.0) PyOpenGL-accelerate (3.1.0) pyparsing (2.0.3) pyqtgraph (0.9.8) pystache (0.5.4) python-dateutil (2.2) pytz (2013b) PyYAML (3.11) pyzmq (14.4.1) requests (2.4.3) scipy (0.14.0) setuptools (5.4.2) six (1.8.0) Sphinx (1.2.3) Theano (0.6.0) tornado (4.0.2) websocket (0.2.1) Werkzeug (0.9.6) wsgiref (0.1.2)

david-ragazzi commented 9 years ago

Hi @eholly1,

Try the solution presented here and install NuPIC Studio again: http://stackoverflow.com/questions/6200056/pip-broke-how-to-fix-distributionnotfound-error

Let me know if this solved.

eholly1 commented 9 years ago

I updated pip as in that thread. When I tried to reinstall with 'sudo pip install nustudio', it went through a bunch of install steps but gave the following error.


/usr/local/bin/gfortran -Wall -Wall -undefined dynamic_lookup -bundle build/temp.macosx-10.10-x86_64-2.7/numpy/linalg/lapack_litemodule.o build/temp.macosx-10.10-x86_64-2.7/numpy/linalg/lapack_lite/python_xerbla.o -L/opt/local/lib -L/usr/local/Cellar/gcc/4.9.2/lib/gcc/x86_64-apple-darwin14.0.0/4.9.2 -Lbuild/temp.macosx-10.10-x86_64-2.7 -llapack -lptf77blas -lptcblas -latlas -lgfortran -o build/lib.macosx-10.10-x86_64-2.7/numpy/linalg/lapack_lite.so

ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture x86_64

collect2: error: ld returned 1 exit status

ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture x86_64

collect2: error: ld returned 1 exit status

error: Command "/usr/local/bin/gfortran -Wall -Wall -undefined dynamic_lookup -bundle build/temp.macosx-10.10-x86_64-2.7/numpy/linalg/lapack_litemodule.o build/temp.macosx-10.10-x86_64-2.7/numpy/linalg/lapack_lite/python_xerbla.o -L/opt/local/lib -L/usr/local/Cellar/gcc/4.9.2/lib/gcc/x86_64-apple-darwin14.0.0/4.9.2 -Lbuild/temp.macosx-10.10-x86_64-2.7 -llapack -lptf77blas -lptcblas -latlas -lgfortran -o build/lib.macosx-10.10-x86_64-2.7/numpy/linalg/lapack_lite.so" failed with exit status 1


Rolling back uninstall of numpy Cleaning up... Command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;file='/private/tmp/pip_build_root/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-zm6b7u-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/numpy Storing debug log for failure in /Users/eholly1/.pip/pip.log


The pip.log file contained a python exception traceback ending in the following:

File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 2593, in parse_requirements raise ValueError("Missing distribution spec", line)