Hi everyone , I am new to using Nengo , and I was trying out few tutorial programs available on nengo web gui.But the very first code i ran is giving me this error :
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nengo_gui\page.py”, line 491, in build
self.sim = backend.Simulator(
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nengo\simulator.py”, line 198, in init
self.reset(seed=seed)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nengo\simulator.py”, line 335, in reset
self._steps = [
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nengo\simulator.py”, line 336, in
op.make_step(self.signals, self.dt, self.rng) for op in self._step_order
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nengo\builder\processes.py”, line 114, in make_step
step_f = self.process.make_step(shape_in, shape_out, dt, rng, state)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nengo_gui\components\slider.py”, line 26, in make_step
size_out = shape_out[0] if is_iterable(shape_out) else shape_out
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nengo_gui\compat.py”, line 35, in is_iterable
return isinstance(obj, collections.Iterable)
AttributeError: module ‘collections’ has no attribute ‘Iterable’
Pls can you tell me what is wrong.The code snippet i have attached below.
# Tutorial 0: Welcome to Nengo
# Nengo <http://nengo.ca> is a tool for creating large-scale biologically
# realistic neural models. It was developed by the Centre for Theoretical
# Neuroscience at the University of Waterloo and the affiliated spin-off
# company Applied Brain Research. It has been used to create Spaun, the
# first simulated brain that is capable of performing tasks.
# This sequence of tutorials takes you through the various features of Nengo.
#
# You can go to the next tutorial by clicking on the "Open file" icon in the
# top-left of the screen and selecting the next one.
#
# The Nengo interface shows the script that defines the model here on the
# right side of the screen, and a graphical depiction of the model on the left
# side.
#
# If you press the "Play" button (bottom-right), the simulation will start.
# You can move the slider to adjust the input to the neurons and see the
# spiking activity of the neurons change. You can also see the value that
# can be decoded from that spiking activity change as the neurons try to
# represent whatever value you are inputting.
import nengo
model = nengo.Network()
with model:
stim = nengo.Node(0)
ens = nengo.Ensemble(n_neurons=50, dimensions=1)
nengo.Connection(stim, ens)