acoustic-carpenter-78188
10/03/2025, 12:24 AMTypeTransformerFailedError: Error encountered while converting inputs of 'fix_type.say_hello':
Error converting input 'additional_properties' at position 2:
Literal value: Flyte Serialized object (Literal):
scalar:
union:
value:
collection:
literals: [map { literals { key: "c" value { scalar { union { value { collection { [...]
type:
collection_type:
map_value_type:
union_type:
variants: [simple: FLOAT structure { tag: "float" } , simple: NONE structure { tag: [...]
structure:
tag: Typed List
Expected Python type: dict[str, float | None | str | bool | datetime.datetime | datetime.date | list[str]] | None
Exception: Cannot convert from Flyte Serialized object (Literal):
scalar:
union:
value:
collection:
literals: [map { literals { key: "c" value { scalar { union { value { collection { [...]
type:
collection_type:
map_value_type:
union_type:
variants: [simple: FLOAT structure { tag: "float" } , simple: NONE structure { tag: [...]
structure:
tag: Typed List to dict[str, float | None | str | bool | datetime.datetime | datetime.date | list[str]] | None (using tag Typed List)
After:
```
Trace:
Traceback (most recent call last):
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/core/base_task.py", line 767, in dispatch_execute
native_outputs = self.execute(**native_inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/core/python_function_task.py", line 216, in execute
return self.dynamic_execute(self._task_function, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/core/python_function_task.py", line 370, in dynamic_execute
return self.compile_into_workflow(ctx, task_function, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/core/python_function_task.py", line 251, in compile_into_workflow
cast(PythonFunctionWorkflow, self._wf).compile(**kwargs)
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/core/workflow.py", line 846, in compile
workflow_outputs = self._workflow_function(**input_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/fix_type.py", line 67, in wf3
say_hello(
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/core/base_task.py", line 373, in call
return flyte_entity_call_handler(self, *args, **kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/core/promise.py", line 1498, in flyte_entity_call_handler
return create_and_link_node(ctx, entity=entity, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/core/promise.py", line 1349, in create_and_link_node
b, n = binding_from_python_std(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/core/promise.py", line 997, in binding_from_python_std
binding_data = run_sync(
^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/utils/asyn.py", line 106, in run_sync
return self._runner_map[name].run(coro)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/utils/asyn.py", line 85, in run
res = fut.result(None)
^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/core/promise.py", line 899, in binding_data_from_python_std
raise AssertionError(
AssertionError: Failed to Bind variable 'additional_properties' for function 'fix_type.say_hello':
Failed to bind data [{'c': ['hello'], 'algorithm': 'xgboost'}] to any of the expected union variants.
Value python type: list, declared python types: dict[str, float | None | str | bool | datetime.datetime | datetime.date | list[str]] | None
Expected literal type: union_type {
variants {
map_value_type {
union_type {
variants {
simple: FLOAT
structure {
tag: "float"
}
}
variants {
s…
flyteorg/flytekitacoustic-carpenter-78188
10/03/2025, 7:24 PM