# Install failed Ubuntu 15.10

**URL:** <https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410>\
**Category:** NuPIC\
**Created:** [September 17, 2016, 9:28pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410 "2016-09-17T21:28:04Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbytze](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gbytze](https://discourse.numenta.org/u/gbytze)\
**Post date:** [September 17, 2016, 9:28pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/1 "2016-09-17T21:28:04Z")

</div>

Everything went great until the tests. I have tried and tried to get a clean install?  
Followed video many times sill errors out on tests.

[Inline console output moved to gist](https://gist.github.com/rhyolight/dfb3fb67a412088bbb9d7d6691a68b97) by @rhyolight

---

<div class="post-metadata">

**Author:** ![gbytze](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gbytze](https://discourse.numenta.org/u/gbytze)\
**Post date:** [September 18, 2016, 8:13pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/3 "2016-09-18T20:13:28Z")

</div>

Tried a third time new VM  
ubuntu-15.10-desktop-amd64  
Still get same 18 failed test and errors

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [September 19, 2016, 5:25pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/4 "2016-09-19T17:25:15Z")

</div>

> <https://gist.github.com/rhyolight/dfb3fb67a412088bbb9d7d6691a68b97#file-nupic-console-txt-L8-L12>

Right away, this tells me that NuPIC is not installed correctly. Tests cannot even run in some cases, because the C++ code behind `nupic.math` is not being imported. This means that `nupic.bindings` is not installed properly.

Run this and tell me the outcome:

```bash
python -c 'import pkg_resources;n=pkg_resources.get_distribution("nupic");b=pkg_resources.get_distribution("nupic.bindings");print n.project_name, n.version;print b.project_name, b.version'

```

It should print out the installed versions of both `nupic` and `nupic.bindings`.

---

<div class="post-metadata">

**Author:** ![gbytze](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gbytze](https://discourse.numenta.org/u/gbytze)\
**Post date:** [September 21, 2016, 11:56am UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/5 "2016-09-21T11:56:44Z")

</div>

Here is output. I even started from another clean install and followed video exactly.  
Thank you so much for your help,

fursty@ubuntu:~/nupic$ python -c 'import pkg\_resources;n=pkg\_resources.get\_distribution(“nupic”);b=pkg\_resources.get\_distribution(“nupic.bindings”);print n.project\_name, n.version;print b.project\_name, b.version’  
nupic 0.5.5  
nupic.bindings 0.4.5

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [September 21, 2016, 3:00pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/6 "2016-09-21T15:00:36Z")

</div>

> [@gbytze](#):
>
> Here is output. I even started from another clean install and followed video exactly.

I assume you followed the video for binary installing, meaning you ran `pip install` to install it. It would be helpful to see the output of the pip command if you can provide it.

---

<div class="post-metadata">

**Author:** ![gbytze](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gbytze](https://discourse.numenta.org/u/gbytze)\
**Post date:** [September 21, 2016, 3:21pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/7 "2016-09-21T15:21:31Z")

</div>

Thank you - I save snapshots along the way. So I reverted to the pip install and here is what I get

**Start------**  
fursty@ubuntu:~$ pip freeze | grep nupic  
nupic.bindings==0.4.5  
fursty@ubuntu:~$  
**fursty@ubuntu:~$ pip install nupic --user**

* * *

Successfully built DBUtils python-dateutil asteval mock validictory coverage psutil prettytable ordereddict PyYAML pycapnp unittest2 pyproj  
Installing collected packages: DBUtils, python-dateutil, asteval, mock, validictory, PyMySQL, coverage, psutil, prettytable, ordereddict, PyYAML, pycapnp, unittest2, pyproj, nupic  
Found existing installation: coverage 4.2  
Uninstalling coverage-4.2:  
Successfully uninstalled coverage-4.2  
Successfully installed DBUtils-1.1 PyMySQL-0.6.2 PyYAML-3.10 asteval-0.9.1 coverage-3.7.1 mock-1.0.1 nupic-0.5.5 ordereddict-1.1 prettytable-0.7.2 psutil-1.0.1 pycapnp-0.5.8 pyproj-1.9.3 python-dateutil-2.1 unittest2-0.5.1 validictory-0.9.1

Again Thank you - been trying for a week to get this up an running test successfully.

---

<div class="post-metadata">

**Author:** ![gbytze](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gbytze](https://discourse.numenta.org/u/gbytze)\
**Post date:** [September 21, 2016, 3:23pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/8 "2016-09-21T15:23:17Z")

</div>

**Here is the PIP**

fursty@ubuntu:~$ **curl [https://bootstrap.pypa.io/get-pip.py](https://bootstrap.pypa.io/get-pip.py) | sudo python**  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
100 1488k 100 1488k 0 0 2090k 0 --:–:-- --:–:-- --:–:-- 2091k  
The directory ‘/home/fursty/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.  
The directory ‘/home/fursty/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.  
Collecting pip  
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)  
100% |████████████████████████████████| 1.2MB 690kB/s  
Collecting setuptools  
Downloading setuptools-27.3.0-py2.py3-none-any.whl (467kB)  
100% |████████████████████████████████| 471kB 2.2MB/s  
Collecting wheel  
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)  
100% |████████████████████████████████| 71kB 4.9MB/s  
Installing collected packages: pip, setuptools, wheel  
**Successfully installed pip-8.1.2 setuptools-27.3.0 wheel-0.29.0**

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [September 21, 2016, 5:33pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/9 "2016-09-21T17:33:38Z")

</div>

Did you run this [as specified in the README](https://github.com/numenta/nupic/blob/master/README.md#install-linux)?

```
pip install https://s3-us-west-2.amazonaws.com/artifacts.numenta.org/numenta/nupic.core/releases/nupic.bindings/nupic.bindings-0.4.5-cp27-none-linux_x86_64.whl

```

This command installs the `nupic.bindings` python module, which maps python onto the C++ nupic.core code.

---

<div class="post-metadata">

**Author:** ![gbytze](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gbytze](https://discourse.numenta.org/u/gbytze)\
**Post date:** [September 21, 2016, 8:20pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/10 "2016-09-21T20:20:06Z")

</div>

Yes I grabbed the syntax per the video that was on the readme

Fursty/[gist:36f1d433e5017ce297c2eb248003d022](http://fursty/gist:36f1d433e5017ce297c2eb248003d022)

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [September 22, 2016, 8:12pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/11 "2016-09-22T20:12:02Z")

</div>

Let’s try running NuPIC. If you have it installed properly this should work.

If you haven’t got the source code locally, check it out or download it, then run this from the checkout directory:

```
> python examples/opf/clients/hotgym/simple/hotgym.py

```

It should print something like this:

```auto
INFO: __main__ :After 100 records, 1-step altMAPE=23.183145
INFO: __main__ :After 200 records, 1-step altMAPE=21.548877
INFO: __main__ :After 300 records, 1-step altMAPE=21.227594
INFO: __main__ :After 400 records, 1-step altMAPE=20.686270
INFO: __main__ :After 500 records, 1-step altMAPE=20.417234
INFO: __main__ :After 600 records, 1-step altMAPE=20.852339
INFO: __main__ :After 700 records, 1-step altMAPE=20.907660
INFO: __main__ :After 800 records, 1-step altMAPE=21.137106
INFO: __main__ :After 900 records, 1-step altMAPE=20.875763
INFO: __main__ :After 1000 records, 1-step altMAPE=20.789707

```

If you get an error or something different, please show me. Thanks!

---

<div class="post-metadata">

**Author:** ![gbytze](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gbytze](https://discourse.numenta.org/u/gbytze)\
**Post date:** [September 26, 2016, 12:39pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/12 "2016-09-26T12:39:06Z")

</div>

So I redid this with a clean install again, based on the video. The tests run\_nupic\_tests.py -u failed again- same 18 errors.  
I ran the hotgym script above and got the output you show.  
So at this time, it may appear that nupic is installed correctly ? I will run further tests as well from the examples.  
I greatly appreciate your help and timely responses. Thank you.

---

<div class="post-metadata">

**Author:** ![wunder007](https://avatars.discourse-cdn.com/v4/letter/w/45deac/32.png) [@wunder007](https://discourse.numenta.org/u/wunder007)\
**Post date:** [September 26, 2016, 4:03pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/13 "2016-09-26T16:03:22Z")

</div>

I would just like to add that I am having EXACTLY the same problem. In my case I have tried Ubuntu versions 15.10 as well as 16.04LTS, and these same versions on clean VirtualBox setups.

Notice though that I am too only using AMD64 CPU, in all these instances, which seems to be a common trait.

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [September 26, 2016, 4:07pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/14 "2016-09-26T16:07:51Z")

</div>

@gbytze @wunder007 Thanks for hanging in there. Glad you can run that script, because that at least proves that NuPIC is installed. I think the problem may be in the environment running tests, but it is hard for me to tell where. It could be that the python environment invoked when running `py.test` is different from that you run from the command line directly. I really don’t know, but the fact that the hotgym sample script works tells me that you should be in a good state. If anything abnormal happens while you are working, please let me know.

---

<div class="post-metadata">

**Author:** ![gbytze](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gbytze](https://discourse.numenta.org/u/gbytze)\
**Post date:** [September 30, 2016, 12:52pm UTC](https://discourse.numenta.org/t/install-failed-ubuntu-15-10/1410/15 "2016-09-30T12:52:03Z")

</div>

I am trying the Hot Gym Tutorial with the install on Ubuntu 15.10 and will see where it ends up.
