试图了解nupic Minecraft演示代码。我从pycharm IDE运行nupic_client.py。 Mac OS上的Python版本为2.7.8,nupic已下载为软件包版本0.2.8
在运行nupic_client.py时发生以下错误 ImportError:没有名为date_capnp的模块
感谢任何帮助。
堆栈跟踪:
File "/Users/msghotra/Sandbox/CodeHub/datascience/workspace/nupic_minecraft/nupic_client.py", line 5, in <module>
from nupic.frameworks.opf.modelfactory import ModelFactory
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nupic/frameworks/opf/modelfactory.py", line 32, in <module>
from clamodel import CLAModel
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py", line 44, in <module>
from nupic.encoders import MultiEncoder, DeltaEncoder
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nupic/encoders/__init__.py", line 24, in <module>
from date import DateEncoder
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nupic/encoders/date.py", line 28, in <module>
from nupic.encoders.date_capnp import DateEncoderProto
ImportError: No module named date_capnp
答案 0 :(得分:0)
我相信你的意思是nupic == 0.2.3,因为0.2.8还没有出来。这应该用https://github.com/numenta/nupic/pull/2231修复。您引用的问题中提供了更多详细信息(直接链接为https://github.com/numenta/nupic/issues/2166)。希望这有帮助!
编辑现在应该在nupic==0.2.6