I am running NuPIC in a Docker container on a MacBook. When I run the stock file hierarchy_network_demo.py
, I get the following error before it is able to write the .csv:
Writing output to: hierarchy-demo-output.csv
Traceback (most recent call last):
File "hierarchy_network_demo.py", line 368, in <module>
runDemo()
File "hierarchy_network_demo.py", line 362, in runDemo
runNetwork(network, numRecords, writer)
File "hierarchy_network_demo.py", line 305, in runNetwork
network.run(1)
File "/usr/local/lib/python2.7/dist-packages/nupic-0.5.5.dev0-py2.7.egg/nupic/engine/__init__.py", line 693, in run
engine.Network.run(self, n)
File "/usr/local/lib/python2.7/dist-packages/nupic.bindings-0.4.5.dev0-py2.7-linux-x86_64.egg/nupic/bindings/engine_internal.py", line 1147, in run
return _engine_internal.Network_run(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/nupic.bindings-0.4.5.dev0-py2.7-linux-x86_64.egg/nupic/bindings/regions/PyRegion.py", line 178, in guardedCompute
return self.compute(inputs, DictReadOnlyWrapper(outputs))
File "/usr/local/lib/python2.7/dist-packages/nupic-0.5.5.dev0-py2.7.egg/nupic/regions/SDRClassifierRegion.py", line 352, in compute
categories = [category for category in inputs["categoryIn"]
KeyError: 'categoryIn'
I can run the other python files in the directory; I have run network_api_demo.py
many times and it creates the 2000-line .csv file as expected.
Any clues from the error messages above? Thank you in advance. I have already pulled the latest NuPIC image and confirmed the same error.