soravux / scoop

SCOOP (Scalable COncurrent Operations in Python)
https://github.com/soravux/scoop
GNU Lesser General Public License v3.0
625 stars 88 forks source link

Python 3.10 Cannot import name 'Iterable' from 'collections' #94

Open remibaar opened 2 years ago

remibaar commented 2 years ago

In Python 3.10 this class has been moved.

from collections import Iterable is now from collections.abc import Iterable

Error message:

Traceback (most recent call last):
  File ".../app/onemax_island_scoop.py", line 28, in <module>
    from scoop import futures
  File ".../venv/lib/python3.10/site-packages/scoop/futures.py", line 19, in <module>
    from collections import namedtuple, Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/opt/homebrew/Cellar/python@3.10/3.10.1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)