Hi there,
Was using pyNN 0.9 and python 2.7 for quite some time, recently converted to pyNN 1.0 and python 3.10, an error was spotted.
In ~/.local/lib/python3.10/site-packages/pyNN/parameters.py
299 if issubclass(expected_dtype, ArrayParameter) and isinstance(value, collections.Sized):
303 if isinstance(value[0], collections.Sized):
function collections has been changed to collections.abc by default in python 3.9+, so the correct usage should be
299 if issubclass(expected_dtype, ArrayParameter) and isinstance(value, collections.abc.Sized):
303 if isinstance(value[0], collections.abc.Sized):
The code has to be modifed or attribute error would occur when populations are made.
Regards,
Tiger