<#3813 [BUG] Module 'PIL' has no attribute Image> ...
# flyte-github
a
#3813 [BUG] Module 'PIL' has no attribute Image Issue created by Benjamintdk Describe the bug Attempting to use the `ImageRenderer` from
Flyteplugins.deck.renderer
yields the following error at this line: "Module PIL has no attribute Image" Expected behavior Don't expect the error to appear as PIL should have been imported at the top of the file. Additional context to reproduce 1. Install the library:
pip install flytekitplugins-deck-standard
2. Import ImageRenderer:
from flytekitplugins.deck.renderer import ImageRenderer
3. Create a task function as shown below:
Copy code
@task
def func(png_path: str):
    ...
    png_file = PNGImageFile(path=png_path, remote_path=some_remote_path)
    flytekit.Deck("demo", ImageRenderer().to_html(png_file)) <--- error occurs here
    ...
Screenshots

image

Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte