Nupic.geospatial python server.py error on Ubuntu 14


#1

Hi! While doing the geospatial youtube tutorial I came across this error when executing server.py

I think I have nupic porperly installed as I passed nupic test and could run onegym anomaly and prediction, sine-prediction and other examples.

Thanks in advance!


#2

That example code has not been updated to use the latest version of NuPIC, which includes breaking changes described here. You can fix this by adjusting what version of NuPIC you have installed (see the thread).


#3

Thanks again Matt! I’ll check it now


#4

That being said, it would be nice if someone updated the example to work with the latest NuPIC. Perhaps once 1.0 is release I’ll try to update all the examples.


#5

I could solve first issue thanks to this post changing
src/nupic/frameworks/opf/modelfactory.py -> src/nupic/frameworks/opf/model_factory.py

However when I try to run the simulated route I get this:

I got into model_factory.py and I think the error comes from here and when reading model.py code I didn´t arrive to any conclusion…

I already tried git checkout and didn’t work.

Thanks in advance!


#6

As noted in my 2nd PR in the breaking changes thread:

In any model params, change the model from CLA to HTMPrediction, like this:

  • ‘model’: ‘CLA’, ==> ‘model’: ‘HTMPrediction’,

#7

Yep, totally forgot to search for that one! However I still get an error…

I tried to follow the trace and find what was wrong but didn´t arrive to anything

Thanks again!


#8

That error would be the very first breaking change mentioned in the other thread:


#9

Yep, already changed but still got more issues… I´ll be trying