Skip to content

No module named 'nengo.utils.compat' #12

@RKCZ

Description

@RKCZ

Hello,

I cloned the repository on Linux and tried to run it both from the terminal and from the Spyder IDE. The execution failed with the following exception:

Traceback (most recent call last):
  File "<ipython-input-1-db715ac42e9c>", line 1, in <module>
    runfile('/home/nest/Desktop/nengo/spaun2.0/run_spaun.py', wdir='/home/nest/Desktop/nengo/spaun2.0')
  File "/home/nest/anaconda3/envs/nengo/lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 827, in runfile
    execfile(filename, namespace)
  File "/home/nest/anaconda3/envs/nengo/lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 110, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)
  File "/home/nest/Desktop/nengo/spaun2.0/run_spaun.py", line 10, in <module>
    from _spaun.configurator import cfg
  File "/home/nest/Desktop/nengo/spaun2.0/_spaun/configurator.py", line 10, in <module>
    from ._spa import MemoryBlock as MB
  File "/home/nest/Desktop/nengo/spaun2.0/_spaun/_spa/__init__.py", line 2, in <module>
    from .mem_block import MemoryBlock
  File "/home/nest/Desktop/nengo/spaun2.0/_spaun/_spa/mem_block.py", line 8, in <module>
    from .._networks import InputGatedMemory as WM
  File "/home/nest/Desktop/nengo/spaun2.0/_spaun/_networks/__init__.py", line 1, in <module>
    from .workingmemory import InputGatedMemory
  File "/home/nest/Desktop/nengo/spaun2.0/_spaun/_networks/workingmemory.py", line 8, in <module>
    from .assoc_mem import AssociativeMemory
  File "/home/nest/Desktop/nengo/spaun2.0/_spaun/_networks/assoc_mem.py", line 9, in <module>
    from nengo.utils.compat import is_iterable, range
ModuleNotFoundError: No module named 'nengo.utils.compat'

I looked through the Nengo source code and it seems that the module was deprecated and removed. Can you suggest some workaround to resolve the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions