htm-community/nupic.studio

Error running examples

Millux opened this issue · 12 comments

Hello Everibody,
after the installation of Nupic_sudio on Ubuntu 12.04, I tried to run the given examples. For each one I can initialize the nework with no problem, but if I try to do 1 step prediction (but for n-steps is the same) nothing changes in the net.

Looking at the console, when I click the prediction button I see this message:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nupic_studio-1.1.2-py2.7.egg/nupic_studio/ui/main_form.py", line 509, in __buttonStepHTM_Click
Global.project.network.nextStep()
File "/usr/local/lib/python2.7/dist-packages/nupic_studio-1.1.2-py2.7.egg/nupic_studio/htm/network.py", line 68, in nextStep
node.nextStep()
File "/usr/local/lib/python2.7/dist-packages/nupic_studio-1.1.2-py2.7.egg/nupic_studio/htm/node_region.py", line 277, in nextStep
self.updateTemporalElements()
File "/usr/local/lib/python2.7/dist-packages/nupic_studio-1.1.2-py2.7.egg/nupic_studio/htm/node_region.py", line 472, in updateTemporalElements
(_, sourceCellAbsIdx, permanence) = self.temporalPooler.connections.dataForSynapse(synIdx)
TypeError: 'SynapseData' object is not iterable

Any idea?

I got the same error here. Were you able to solve this?

@Millux @larvasapiens I may have found the cause of this. Just working out with Numenta engineers how to get around this. Will ping you both on a fix PR.

Thank you!

Thank you Richard!

On Tue, Sep 22, 2015 at 11:04 PM, Sebastian Narvaez R. <
notifications@github.com> wrote:

Thank you!


Reply to this email directly or view it on GitHub
#29 (comment)
.

The breaking change was introduced in this commit https://github.com/numenta/nupic/pull/2346/files#r40582664 Hopefully someone with Python knowledge can see a way to fix this.

@Millux I've added a PR change that gets around the assert. I'm not familiar with using nupic.studio, so if you or @larvasapiens can check the change we can get it merged in. cc @rhyolight

Hi @Millux @larvasapiens, I pulled @rcrowder changes, could you push them again for your local repo? If not, you can pip it again, but you should want until this weekend because I still have to upload these changes to pip repository..

It works now 😄 👍

Hi David,
I've just pip installed nupic_studio and I'm getting the same error described by Millux: -

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/nupic_studio/ui/main_form.py", line 509, in __buttonStepHTM_Click
Global.project.network.nextStep()
File "/usr/lib/python2.7/site-packages/nupic_studio/htm/network.py", line 68, in nextStep
node.nextStep()
File "/usr/lib/python2.7/site-packages/nupic_studio/htm/node_region.py", line 277, in nextStep
self.updateTemporalElements()
File "/usr/lib/python2.7/site-packages/nupic_studio/htm/node_region.py", line 472, in updateTemporalElements
(_, sourceCellAbsIdx, permanence) = self.temporalPooler.connections.dataForSynapse(synIdx)
TypeError: 'SynapseData' object is not iterable

Should I be using github rather than pip to install this?

@iheddle I'm getting the exact same

@iheddle i fixed it by following the Developer instructions for nupic.studio installation, i guess the pip install doesn't have the latest code yet. I also followed the develop instructions to compile/install nupic.core, nupic.bindings and nupic itself, thinking those were the issue. But I think compiling nupic.studio is what fixed it.

Thanks for the feedback

On 7 February 2016 at 01:06, ibexel notifications@github.com wrote:

@iheddle https://github.com/iheddle i fixed it by following the
Developer instructions for nupic.studio installation, i guess the pip
install doesn't have the latest code yet. I also followed the develop
instructions to compile/install nupic.core, nupic.bindings and nupic
itself, thinking those were the issue. But I think compiling nupic.studio
is what fixed it.


Reply to this email directly or view it on GitHub
#29 (comment)
.