Hello! I am following the <https://docs.flyte.org/...
# flyte-support
f
Hello! I am following the Flyte docs for running a workflow using NotebookTask. My notebook is defined as:
Copy code
v = 3.14
square = v*v
print(square)

from flytekitplugins.papermill  import record_outputs

record_outputs(square=square)
And my task:
Copy code
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),
)
And the workflow:
Copy code
@workflow  
def hello_world_nb_workflow(
    v: float = 3.1415926535,
) -> float:
    out = hello_nb(v=v)
    sq_root = square_root_task(f=out.square)
However, I am getting the error:
Copy code
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.
Even though I am able to see
square
in the node outputs.
Could you help me with that if the error is familiar or you can catch up why that is? Thank you! Solved by tagging the output properly as
outputs
yehoo it just ran successfully. The problem was tagging. Output was not tagged as
outputs
😅 I got reminded that by the automatic response in the Flyte slack channel
🔥 1
a
great to learn.
I got reminded that by the automatic response in the Flyte slack channel
Sorry, what response?
Oh I guess the one from RunLLM. Cool, time to give it thumbs up 😀