Skip to content

ImportError in Python 3.11 when importing dask_image.imread #449

@davedavemckay

Description

@davedavemckay

Use case:

  • Importing dask_image.imread in Python 3.11

Issue:

  • ImportError: cannot import name 'Iterable' from 'collections' arises from pims (cine.py)

Expected result:

  • Imports

Reason:
Iterable deprecated from collections in Pythnon 3.10 docs section

Solution:
In cine.py, change:

from collections import Iterable

to:

from collections.abc import Iterable

or
Install Python=<3.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions