-
Notifications
You must be signed in to change notification settings - Fork 299
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
Fix [BUG] Module 'PIL' has no attribute Image #1793
Fix [BUG] Module 'PIL' has no attribute Image #1793
Conversation
Signed-off-by: Future Outlier <[email protected]>
Signed-off-by: Future Outlier <[email protected]>
Signed-off-by: Future Outlier <[email protected]>
Signed-off-by: Future Outlier <[email protected]>
…/github.com/Future-Outlier/flytekit into add-type-annotations-for-configuration-file
Signed-off-by: Future Outlier <[email protected]>
Signed-off-by: Future Outlier <[email protected]>
@@ -1,5 +1,7 @@ | |||
from typing import TYPE_CHECKING, List, Optional, Union | |||
|
|||
import PIL.Image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think we need this? We just use PIL.Image.Image so line 17 should be enough right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are probably right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think we should add the import, there is a lazy load already
Just found that you are right, thanks a lot for the review! |
Just contact the author of this pull request, I think maybe the bug doesn't exist. |
TL;DR
Please replace this text with a description of what this PR accomplishes.
Type
Are all requirements met?
Complete description
You can search "return PIL.Image.open(local_path)" in the code, and you will find that it is not enough to just use "import PIL" in the code.
Tracking Issue
flyteorg/flyte#3813
Follow-up issue
NA
OR
https://github.com/flyteorg/flyte/issues/