You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to run pycprops in Python 3.10.2 (which uses astrodendro) and encountered the following import error (partial traceback to exclude my scripts and directory names):
File ".../astrodendro/__init__.py", line 3
from .dendrogram import Dendrogram, periodic_neighbours
File ".../astrodendro/dendrogram.py", line 8
from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections'
It looks like importing Iterable from collections has changed after Python 3.9 (see text below the first table at the top of the page here).
I was trying to run
pycprops
in Python 3.10.2 (which usesastrodendro
) and encountered the following import error (partial traceback to exclude my scripts and directory names):It looks like importing
Iterable
fromcollections
has changed after Python 3.9 (see text below the first table at the top of the page here).Changing line 8 in
dendrogram.py
fromto
eliminated the problem for me (inspired by suggestion in the comment here).
Let me know if you need any more information.
The text was updated successfully, but these errors were encountered: