flat-evening-84396
06/28/2024, 12:49 PMv = 3.14
square = v*v
print(square)
from flytekitplugins.papermill import record_outputs
record_outputs(square=square)
hello_nb = NotebookTask(
name="hello_world",
notebook_path=str(pathlib.Path(__file__).parent.absolute() / "hello_world.ipynb"),
render_deck=True,
inputs=kwtypes(v=float),
outputs=kwtypes(square=float),
)
@workflow
def hello_world_nb_workflow(
v: float = 3.1415926535,
) -> float:
out = hello_nb(v=v)
sq_root = square_root_task(f=out.square)
File "/usr/src/app/.venv/lib/python3.8/site-packages/flytekit/exceptions/scopes.py", line 183, in system_entry_point
return wrapped(*args, **kwargs)
File "/usr/src/app/.venv/lib/python3.8/site-packages/flytekit/core/base_task.py", line 707, in dispatch_execute
native_outputs = self.execute(**native_inputs)
File "/usr/src/app/.venv/lib/python3.8/site-packages/flytekitplugins/papermill/task.py", line 291, in execute
raise TypeError(f"Expected output {k} of type {type_v} not found in the notebook outputs")
Message:
TypeError: Expected output square of type <class 'float'> not found in the notebook outputs
SYSTEM ERROR! Contact platform administrators.
square
in the node outputs.outputs
flat-evening-84396
06/28/2024, 1:04 PMoutputs
😅 I got reminded that by the automatic response in the Flyte slack channelaverage-finland-92144
06/28/2024, 2:56 PMI got reminded that by the automatic response in the Flyte slack channelSorry, what response?
average-finland-92144
06/28/2024, 3:09 PM