RL-VIG / LibFewShot

LibFewShot: A Comprehensive Library for Few-shot Learning. TPAMI 2023.
MIT License
903 stars 173 forks source link

ImportError: cannot import name 'Iterable' from 'collections' #76

Closed rajivchoudhury closed 1 year ago

rajivchoudhury commented 1 year ago

ImportError: cannot import name 'Iterable' from 'collections' (C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64qbz5n2kfra8p0\lib\collections\init__.py)

Error is shown when running run_trainner.py

wZuck commented 1 year ago

This error is not caused by LibFewShot. You can replace https://github.com/RL-VIG/LibFewShot/blob/eb68580c12c524a944242d236af223ff71465c75/core/data/collates/collate_functions.py#L3 with from collections.abc import Iterable.

For more information, please refer to stackoverflow.