I have a Raspberry Pi 3 model B. I ran into some issues. python setup.py install --user didnβt work, I think one of the errors that popped up said something about the CPU not being compatible.
I think that NuPIC bindings install from the amazon server (or maybe it was the wheels installation) doesnβt work because itβs not supported on Raspberry Pi.
This guide is very obsolete. NuPIC has changed a lot since it was written.
As far as I know, no one has run NuPIC on a Raspberry Pi in over a year. I tried it over year ago with the B came out, but failed a lot before giving up. Itβs not as easy as following the Ubuntu instructions because you have to identify, package, and include a bunch of 32b C++ libraries during the build.
Youβll have to build it from source yourself since there are no binary packages for ARM. Iβve successfully nupic from source before (not on raspberry pi), so I might be able to help if you need.
Okay, I think the installation worked, I run all the tests and they seem to have all checked out. I succeeded by first of all installing a 2GB swap space, and second of all, by carefully installing every dependency and every requirement on each dependency and perhaps even a couple more dependencies that I donβt need. I also tried to follow each instruction more carefully and I used ββuserβ and βsudoβ a lot more, to make sure it actually lets me install. Hereβs a URL of the gist (raw output) of some of the installation that went into nupic.core, in case you want to check for anything bad that went wrong. Log of some of the installation of nupic.core.
Anyway, I still canβt use NuPIC on my Raspberry Pi for what I wanted to use it forβ¦like swarming and/or anomaly detection. I tried installing nupic using βpip install nupicβ which didnβt work since it complained about not having the correct distribution of nupic.bindings==0.4.13 but when I did βpython setup.py install --userβ in the nupic directory, it worked. Sidenote: I think all of the following commands work or at least supposed to work on my non-Pi PC machine (so there is probably nothing wrong with the commands/files themselves). But probably some libraries are somehow missing.
Here are the errors I see:
pi@daedalus:~/nupic/examples/opf/clients/hotgym/prediction/one_gym $ ./swarm.py
./swarm.py: line 24: $'\nGroups together the code dealing with swarming.\n(This is a component of the One Hot Gym Prediction Tutorial.)\n': command not found
./swarm.py: line 25: import: command not found
./swarm.py: line 26: import: command not found
./swarm.py: line 29: import: command not found
./swarm.py: line 32: syntax error near unexpected token `from'
./swarm.py: line 32: `from nupic.swarming import permutations_runner'
pi@daedalus:~/nupic/examples/opf/clients/hotgym/prediction/one_gym $ python swarm.py
Traceback (most recent call last):
File "swarm.py", line 32, in <module>
from nupic.swarming import permutations_runner
ImportError: No module named swarming
pi@daedalus:~/nupic/examples/opf/clients/hotgym/prediction/one_gym $ python run.py
Traceback (most recent call last):
File "run.py", line 30, in <module>
from nupic.data.inference_shifter import InferenceShifter
ImportError: No module named data.inference_shifter
pi@daedalus:~/nupic/examples/opf/clients/hotgym/prediction/test1 $ ./process_input.py 101m.csv 101-output-test1.csv -1 OFF Vals
Traceback (most recent call last):
File "./process_input.py", line 28, in <module>
from nupic.frameworks.opf.modelfactory import ModelFactory
ImportError: No module named frameworks.opf.modelfactory
Okay I just did all of that. The builds and installations didnβt seem to give me any errors but some of the tests failed for nupic. So I still canβt run swarms or prediction, I get the same kind of errors as Iβve listed in my previous post. I wonder if it has something to do with the fact that Iβve installed using ββuserβ and not "sudo." Here are some of the tests that I ran, I put it up on gist.
@addonis Iβm willing to help you with this (I have a raspberry pi laying around). But it will have to be at least next week (or the week after). Please remind me?? I have some catching up to do after the holidays.
Okay, so I got this error fixed. When I ran the command python run.py you can see that there is no file in nupic/frameworks/opf/modelfactory as well as some other files. So to fix the error, some files have to be moved around. The files are there (in the nupic directory), you just have to find them and put them into places as to let other python files know about them. So now I can run a swarm (swarm.py) on the hot_gym demo on the Raspberry Pi, and I can also run a prediction model (run.py) with the swarmed data.
Although my file is still not working, it says:
pi@daedalus:~/nupic/examples/opf/clients/hotgym/prediction/test1 $ ./process_input.py 101m.csv 101-output-test1.csv -1 OFF Vals
ERR: Unknown parameter 'maxBoost' for region 'SP' of type 'py.SPRegion'
Valid parameters are:
stimuluisThreshold
columnCount
....
....(etc.)
Traceback calls (too much to write out, and I was having trouble copying it to a USB).
RuntimeError: Unknown parameter 'maxBoost' for region 'SP' of type 'py.SPRegion'
Valid parameters are:
stimuluisThreshold
columnCount
....
....(etc.)