Project-MONAI/MONAI

Print what package should be installed when suitable writer is missing

Open

#7.980 geöffnet am 1. Aug. 2024

Auf GitHub ansehen
 (14 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Python (888 Forks)batch import
Contribution wantedenhancementgood first issue

Repository-Metriken

Stars
 (4.800 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20T 8h) (35 gemergte PRs in 30 T)

Beschreibung

Is your feature request related to a problem? Please describe. I used SaveImage(..., output_ext=".png") but got this error message

monai.utils.module.OptionalImportError: No ImageWriter backend found for png.

This was after pip install monai in a clean environment.

Describe the solution you'd like It would be great if the error message would include a description of how to fix the issue, e..g. "Please install pillow". Initially I installed simpleitk which also didn't have the png writer apparently, and I got the same error.

Describe alternatives you've considered n/a

Additional context Happened with monai==1.3.2

Contributor Guide