Skip to content

Raise the exception when LoadImage has a reader specified but it is not installed  #7437

@ibro45

Description

@ibro45

Describe the bug
Running LoadImage(reader="ITKReader") without itk installed will just warn that itk is not installed and will proceed with using PILReader instead.

f"required package for reader {r} is not installed, or the version doesn't match requirement."

Expected behavior
If the specified reader is not installed, an exception should be raised.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions