Error while using Nengo

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\”, line 491, in build
self.sim = backend.Simulator(
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nengo\”, line 198, in init
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nengo\”, line 335, in reset
self._steps = [
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nengo\”, 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\”, 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\”, 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\”, 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 <> 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)

Hi @aditya_spiking, and welcome to the Nengo forums! :smiley:

As far as I can tell, you haven’t done anything wrong. Rather, there seems to be an error (or misconfiguration) of your Python environment.

I’m unable to reproduce your error locally using Python 3.10 and the latest installation of Nengo and NengoGUI. To help me diagnose this error, could you provide me with:

  1. The versions of Nengo and NengoGUI you are using? If you open up a terminal (the same terminal from which you issue the nengo command), you can get this information using the pip freeze command.
  2. The version of Python you are using. You can get this by typing python in a terminal. It should display the version number when the Python program starts.
  3. The steps taken to encountered this error. E.g., opened Nengo from command line, then pressed play and the error occurred.