htm-community / nupic.studio

NuPIC Studio is a powerful all­-in-­one tool that allows users create a HTM neural network from scratch, train it, collect statistics, and share it among the members of the community.
GNU General Public License v2.0
94 stars 29 forks source link

Error running examples #29

Closed Millux closed 8 years ago

Millux commented 9 years ago

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/noderegion.py", line 472, in updateTemporalElements (, sourceCellAbsIdx, permanence) = self.temporalPooler.connections.dataForSynapse(synIdx) TypeError: 'SynapseData' object is not iterable

Any idea?

sebnarvaez commented 8 years ago

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

rcrowder commented 8 years ago

@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.

sebnarvaez commented 8 years ago

Thank you!

Millux commented 8 years ago

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 https://github.com/nupic-community/nupic.studio/issues/29#issuecomment-142421237 .

rcrowder commented 8 years ago

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.

rcrowder commented 8 years ago

@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

david-ragazzi commented 8 years ago

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..

sebnarvaez commented 8 years ago

It works now :smile: :+1:

iheddle commented 8 years ago

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/noderegion.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?

kadegray commented 8 years ago

@iheddle I'm getting the exact same

kadegray commented 8 years ago

@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.

iheddle commented 8 years ago

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 https://github.com/nupic-community/nupic.studio/issues/29#issuecomment-180770443 .