Skip to content

Print what package should be installed when suitable writer is missing #7980

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
holgerroth opened this issue Aug 1, 2024 · 1 comment · May be fixed by #8001 or #8240
Open

Print what package should be installed when suitable writer is missing #7980

holgerroth opened this issue Aug 1, 2024 · 1 comment · May be fixed by #8001 or #8240
Labels
Contribution wanted enhancement New feature or request good first issue Good for newcomers

Comments

@holgerroth
Copy link
Collaborator

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

@holgerroth
Copy link
Collaborator Author

Same would apply for LoadImage and image readers for different formats

@KumoLiu KumoLiu added enhancement New feature or request good first issue Good for newcomers Contribution wanted labels Aug 1, 2024
ytl0623 added a commit to ytl0623/MONAI that referenced this issue Aug 7, 2024
ytl0623 added a commit to ytl0623/MONAI that referenced this issue Aug 7, 2024
@vectorvp vectorvp linked a pull request Nov 26, 2024 that will close this issue
7 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Contribution wanted enhancement New feature or request good first issue Good for newcomers
Projects
None yet
2 participants