acoustic-carpenter-78188
06/29/2023, 5:19 AMFlyteplugins.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:
@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▾