Hi Scott,
So here’s the error I’ve gotten. Oddly enough I didn’t see this when I ran the ‘run.py’ file from the command line, only when I tried to run it from within Spyder. I think this happens in line 128, within the ‘runIOThroughNupic’ function. If I can provide you with the data itself or anything else that might help let me know and you got it. Again I seem to be able to run it ok from the command line, so its not stopping me from moving forward, though I am curious if something is going haywire below my radar. Thanks again,
– Sam
> File "<ipython-input-1-ba70c37d590f>", line 1, in <module>
> runfile('/home/sheiser1/nupic/examples/opf/clients/hotgym/anomaly/one_gym/run.py', wdir='/home/sheiser1/nupic/examples/opf/clients/hotgym/anomaly/one_gym')
> File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 699, in runfile
> execfile(filename, namespace)
> File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 81, in execfile
> builtins.execfile(filename, *where)
> File "/home/sheiser1/nupic/examples/opf/clients/hotgym/anomaly/one_gym/run.py", line 190, in <module>
> runModel(only_csv_files, plot=plot) #runModel(GYM_NAME, plot=plot)
> File "/home/sheiser1/nupic/examples/opf/clients/hotgym/anomaly/one_gym/run.py", line 164, in runModel
> runIoThroughNupic(inputData, model, file_name, plot)
> File "/home/sheiser1/nupic/examples/opf/clients/hotgym/anomaly/one_gym/run.py", line 128, in runIoThroughNupic
> "Error": consumption #"kw_energy_consumption": consumption
> File "/home/sheiser1/.local/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py", line 390, in run
> self._tpCompute()
> File "/home/sheiser1/.local/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py", line 507, in _tpCompute
> tp.compute()
> File "/home/sheiser1/.local/lib/python2.7/site-packages/nupic/engine/__init__.py", line 460, in compute
> return self._region.compute()
> File "/home/sheiser1/.local/lib/python2.7/site-packages/nupic/bindings/engine_internal.py", line 1436, in compute
> return _engine_internal.Region_compute(self)
> RuntimeError: Python exception raised. Unable to extract info
> In [2]: runfile('/home/sheiser1/nupic/examples/opf/clients/hotgym/anomaly/one_gym/run.py', wdir='/home/sheiser1/nupic/examples/opf/clients/hotgym/anomaly/one_gym')
> Reloaded modules: nupic.research.TP10X2, validictory, nupic.encoders.utils, nupic.encoders.geospatial_coordinate, nupic.research.monitor_mixin.metric, nupic.regions, nupic.encoders.base, nupic.data.jsonhelpers, nupic.encoders.logenc, nupic.support.fshelpers, nupic.encoders.category, nupic.encoders.delta, nupic.utils, nupic.frameworks.opf.two_gram_model, nupic.encoders.pass_through_encoder, nupic.frameworks.opf.CLAModelProto_capnp, nupic.research.fdrutilities, nupic.encoders.sdrcategory, nupic.frameworks.opf, nupic.frameworks.opf.opfutils, nupic.regions.KNNClassifierRegion, nupic.encoders.multi, nupic.algorithms.sdr_classifier, nupic.research.spatial_pooler, nupic.encoders, nupic.encoders.date, nupic.support.consoleprinter, nupic.data.inference_shifter, nupic.regions.TPRegion, nupic.research.TP, nupic.algorithms.sdr_classifier_factory, nupic_anomaly_output, nupic.regions.SDRClassifierRegion_capnp, nupic.research.monitor_mixin, nupic.support.configuration_custom, nupic.algorithms, _engine_internal, capnp.lib, nupic.encoders.scalar, nupic.engine, _algorithms, nupic.algorithms.anomaly, nupic.frameworks.opf.clamodel, nupic.bindings.regions, nupic.encoders.record_sensor_capnp, nupic.regions.SPRegion_capnp, nupic.research.monitor_mixin.monitor_mixin_base, nupic.frameworks.opf.previousvaluemodel, nupic.frameworks.opf.modelfactory, capnp.version, nupic.regions.SDRClassifierRegion, nupic.data, nupic.support.configuration_base, nupic.data.fieldmeta, nupic.encoders.adaptivescalar, _math, nupic.encoders.scalarspace, nupic.bindings.regions.PyRegion, nupic.support.lockattributes, pyproj, nupic.bindings, nupic.encoders.sparse_pass_through_encoder, nupic.research.temporal_memory, nupic.data.functionsource, nupic.regions.RecordSensor, nupic.math, pyproj._proj, capnp, nupic.research.TP_shim, nupic.frameworks, nupic.support, nupic.research.monitor_mixin.plot, nupic.encoders.random_distributed_scalar, nupic.research.connections, nupic.encoders.coordinate, prettytable, nupic.regions.KNNAnomalyClassifierRegion, nupic.research.monitor_mixin.temporal_memory_monitor_mixin, nupic.frameworks.opf.model, pyproj.datadir, nupic.support.enum, nupic.frameworks.opf.exceptions, nupic.bindings.math, nupic.research.monitor_mixin.trace, nupic.algorithms.KNNClassifier, validictory.validator, nupic.regions.SPRegion, nupic.bindings.engine_internal, nupic.research, capnp.lib.capnp, nupic.support.configuration, nupic.algorithms.anomaly_likelihood, nupic.bindings.algorithms, nupic.support.group_by
> Traceback (most recent call last):
> File "<ipython-input-2-ba70c37d590f>", line 1, in <module>
> runfile('/home/sheiser1/nupic/examples/opf/clients/hotgym/anomaly/one_gym/run.py', wdir='/home/sheiser1/nupic/examples/opf/clients/hotgym/anomaly/one_gym')
> File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 699, in runfile
> execfile(filename, namespace)
> File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 81, in execfile
> builtins.execfile(filename, *where)
> File "/home/sheiser1/nupic/examples/opf/clients/hotgym/anomaly/one_gym/run.py", line 36, in <module>
> from nupic.frameworks.opf.modelfactory import ModelFactory
> File "/home/sheiser1/.local/lib/python2.7/site-packages/nupic/frameworks/opf/modelfactory.py", line 32, in <module>
> from clamodel import CLAModel
> File "/home/sheiser1/.local/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py", line 44, in <module>
> from nupic.engine import Network
> File "/home/sheiser1/.local/lib/python2.7/site-packages/nupic/engine/__init__.py", line 78, in <module>
> registerBuiltInRegions()
> File "/home/sheiser1/.local/lib/python2.7/site-packages/nupic/engine/__init__.py", line 74, in registerBuiltInRegions
> engine.Network.registerPyRegion(module, className)
> File "/home/sheiser1/.local/lib/python2.7/site-packages/nupic/bindings/engine_internal.py", line 1196, in registerPyRegion
> return _engine_internal.Network_registerPyRegion(*args, **kwargs)
> RuntimeError: A pyRegion with name 'AnomalyRegion' already exists. Unregister the existing region or register the new region using a different name.