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

Installing python-scipy for nustudio failure #15

Closed kalletammemae closed 9 years ago

kalletammemae commented 9 years ago

Help needed...

Situation: Nupic is run in Virtualbox, using preset VM image (https://github.com/numenta/nupic/wiki/Running-Nupic-in-a-Virtual-Machine#preset-vm-image). The base machine is 64-bit Windows 7 computer (Intel chipset). Problem: nustudio does not install (pip install nustudio), obviously failing to install scipy: --- < snip > --- Source in /tmp/pip_build_nupic/scipy has version 0.14.0, which satisfies requirement scipy (from PyQtGraph->nustudio) Installing collected packages: scipy Running setup.py install for scipy Running command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_nupic/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-JHhTqO-record/install-record.txt --single-version-externally-managed --compile blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE
atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE

--- < snip > ---

Installation of python-scipy separately is failing too:

$ sudo apt-get install python-scipy Reading package lists... Done Building dependency tree
Reading state information... Done The following NEW packages will be installed: python-scipy 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 8,184 kB of archives. After this operation, 27.0 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! python-scipy Install these packages without verification [y/N]? y Err http://archive.ubuntu.com/ubuntu/ raring/universe python-scipy amd64 0.11.0+dfsg1-1ubuntu2 404 Not Found [IP: 91.189.88.153 80] Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/python-scipy/python-scipy_0.11.0+dfsg1-1ubuntu2_amd64.deb 404 Not Found [IP: 91.189.88.153 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

david-ragazzi commented 9 years ago

From I saw, you are trying install scipy 0.11.0

You should update the apt-get repo and then try again:

apt-get update apt-get install scipy

Try this and let me know your results..

kalletammemae commented 9 years ago

Thanks, I have tried this as well. After doing 'sudo apt-get update' and then 'sudo apt-get install scipy':

Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package scipy

Python-scipy log is a bit longer: nupic@nupic-vm:~$ sudo apt-get install python-scipy Reading package lists... Done Building dependency tree
Reading state information... Done The following NEW packages will be installed: python-scipy 0 upgraded, 1 newly installed, 0 to remove and 83 not upgraded. Need to get 8,184 kB of archives. After this operation, 27.0 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! python-scipy Install these packages without verification [y/N]? y Err http://archive.ubuntu.com/ubuntu/ raring/universe python-scipy amd64 0.11.0+dfsg1-1ubuntu2 404 Not Found [IP: 91.189.91.15 80] Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/python-scipy/python-scipy_0.11.0+dfsg1-1ubuntu2_amd64.deb 404 Not Found [IP: 91.189.91.15 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I have tried also to install ATLAS + LAPACK, which again is requiring gfortran and finally failed so far because 'sudo apt-get install gfortran' is returning similar answer:

nupic@nupic-vm:~$ sudo apt-get install gfortran [sudo] password for nupic: Reading package lists... Done Building dependency tree
Reading state information... Done The following packages were automatically installed and are no longer required: libamd2.2.0 libumfpack5.4.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: gfortran-4.7 libgfortran-4.7-dev Suggested packages: gfortran-multilib gfortran-doc gfortran-4.7-multilib gfortran-4.7-doc libgfortran3-dbg The following NEW packages will be installed: gfortran gfortran-4.7 libgfortran-4.7-dev 0 upgraded, 3 newly installed, 0 to remove and 83 not upgraded. Need to get 6,179 kB of archives. After this operation, 16.6 MB of additional disk space will be used. Do you want to continue [Y/n]? Y WARNING: The following packages cannot be authenticated! libgfortran-4.7-dev gfortran-4.7 gfortran Install these packages without verification [y/N]? y Err http://archive.ubuntu.com/ubuntu/ raring/main libgfortran-4.7-dev amd64 4.7.3-1ubuntu1 404 Not Found [IP: 91.189.92.201 80] Err http://archive.ubuntu.com/ubuntu/ raring/main gfortran-4.7 amd64 4.7.3-1ubuntu1 404 Not Found [IP: 91.189.92.201 80] Err http://archive.ubuntu.com/ubuntu/ raring/main gfortran amd64 4:4.7.3-1ubuntu10 404 Not Found [IP: 91.189.92.201 80] Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.7/libgfortran-4.7-dev_4.7.3-1ubuntu1_amd64.deb 404 Not Found [IP: 91.189.92.201 80] Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.7/gfortran-4.7_4.7.3-1ubuntu1_amd64.deb 404 Not Found [IP: 91.189.92.201 80] Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/gfortran_4.7.3-1ubuntu10_amd64.deb 404 Not Found [IP: 91.189.92.201 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

So, confusion continues :(

david-ragazzi commented 9 years ago

hi @kalletammemae,

Have you solved this issue?

I see that you continue trying install 0.11.0 version. Please try this:

apt-get install python-scipy=0.14.0

kalletammemae commented 9 years ago

Thanks, David, to remember!

Actually solved not precisely so, I just got newer Ubuntu 14.04 in Virtual box (Python 2.7.6, gcc 4.8.2) and it was possible to install Nupic and NuStudio there. Initially there were problems with graphics window. VBOXADDITIONS solved this. There are still messages: libGL error: failed to authenticate magic 1 libGL error: failed to load driver: vboxvideo but the NuStudio 0.1.0 is nicely up. Had no time to renew it yet.

The problem with older 64-bit Ubuntu virtual machine 13.04 remained unsolved, I didn’t succeed to get python-scipy installed despite a lot of good suggestions – conflicts didn’t disappear. Yes, I tried apt-get install python-scipy=0.14.0 too. But it doesn’t matter anymore, it’s time to move on.

Regards, Kalle T.

From: David Ragazzi [mailto:notifications@github.com] Sent: Tuesday, November 25, 2014 5:32 PM To: nupic-community/nupic.studio Cc: Kalle Tammemäe Subject: Re: [nupic.studio] Installing python-scipy for nustudio failure (#15)

hi @kalletammemaehttps://github.com/kalletammemae,

Have you solved this issue?

I see that you continue trying install 0.11.0 version. Please try this:

apt-get install python-scipy=0.14.0

— Reply to this email directly or view it on GitHubhttps://github.com/nupic-community/nupic.studio/issues/15#issuecomment-64417118.

david-ragazzi commented 9 years ago

Thanks kalletammemae !

So I'll close this.