jolly-florist-66728
12/04/2024, 12:03 AMint
as argument to the workflow, but seeing TypeTransformerFailedError
.
$ pyflyte run remote-workflow <look_upservice> --var1 24
TypeTransformerFailedError: Python value cannot be None, expected <class 'int'>/Flyte Serialized object (LiteralType):
simple: 1
# Answer
The error you're encountering, TypeTransformerFailedError
, suggests that Flyte is expecting an integer value but is receiving None
instead. This could be due to a mismatch in the expected input type or a missing input value when invoking the workflow.
To resolve this issue, ensure that:
1. The workflow is defined to accept an integer input, and the input is correctly passed when invoking the workflow.
2. Check if the input variable var1
is correctly defined and passed as an integer in the command line.
3. Verify that the workflow and task definitions correctly specify the input types, and there are no discrepancies between the expected and provided types.
If the issue persists, could you provide more details about the workflow definition and how the input is being passed? This will help in diagnosing the problem more accurately.
Sources:
- Flyte GitHub Issue #4505
Slack Link
https://flyte.slack.com/archives/CP2HDHKE1/p1733270597.178749 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.