Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
holgerroth opened this issue Aug 1, 2024 · 1 comment · May be fixed by #8001
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contribution wanted enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants