Matt, I'm also having issues that end up in "RuntimeError: Could not get valid spec for Region: py.RecordSensor"
One thing I see is that "import pylab" fails for me with the same error you're seeing, even though importing multiarray in the normal way works. Looking into that. Ian On Sun, Sep 15, 2013 at 8:31 PM, Matt Keith <[email protected]> wrote: > I used to have a working NuPIC setup on my rMBP running OS X 10.8.4 and > python 2.7, but last week I pulled the latest code from github and now I > get an import error when I run any client code. Everything builds fine and > it even passes htmtest and run_tests.sh. However, when I run the hotgym > example now I get the following error: > > -->python $NUPIC/examples/opf/clients/hotgym/hotgym.py > ImportError: numpy.core.multiarray failed to import > ERROR: Could not get valid spec for Region: py.RecordSensor > [/Users/keith/Development/nupic/nta/engine/RegionImplFactory.cpp line 452] > Traceback (most recent call last): > File > "/Users/keith/Development/nupic/examples/opf/clients/hotgym/hotgym.py", > line 94, in <module> > runHotgym() > File > "/Users/keith/Development/nupic/examples/opf/clients/hotgym/hotgym.py", > line 65, in runHotgym > model = createModel() > File > "/Users/keith/Development/nupic/examples/opf/clients/hotgym/hotgym.py", > line 60, in createModel > return ModelFactory.create(model_params.MODEL_PARAMS) > File > "/Users/keith/Development/nta/eng/lib/python2.7/site-packages/nupic/frameworks/opf/modelfactory.py", > line 76, in create > return modelClass(**modelConfig['modelParams']) > File > "/Users/keith/Development/nta/eng/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py", > line 203, in __init__ > anomalyParams) > File > "/Users/keith/Development/nta/eng/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py", > line 1078, in __createCLANetwork > n.addRegion("sensor", "py.RecordSensor", > json.dumps(dict(verbosity=sensorParams['verbosity']))) > File > "/Users/keith/Development/nta/eng/lib/python2.7/site-packages/nupic/engine/__init__.py", > line 636, in addRegion > engine.Network.addRegion(self, name, nodeType, nodeParams) > File > "/Users/keith/Development/nta/eng/lib/python2.7/site-packages/nupic/bindings/engine_internal.py", > line 1011, in addRegion > return _engine_internal.Network_addRegion(*args, **kwargs) > RuntimeError: Could not get valid spec for Region: py.RecordSensor > > Is anyone else seeing this problem with the latest code? Any ideas as to > why the multiarray lib won't load? > > The .so file was built and exists in the $NAT/eng dir at > -rwxr-xr-x 1 keith staff 2921728 Sep 15 20:47 > lib/python2.7/site-packages/numpy/core/multiarray.so > And the module seems to load fine by hand: > >>> import numpy > >>> import numpy.core.multiarray > >>> numpy.__version__ > '1.7.1' > >>> numpy.core.multiarray.__version__ > '3.1' > > Let me know if you would like any output from the stdout.txt file from the > build. > > Thanks, > > Matt > _______________________________________________ > nupic mailing list > [email protected] > http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org >
_______________________________________________ nupic mailing list [email protected] http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
