You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ak8chhw7598h6x695dvg-n0-0] terminated with exit code (1). Reason [Error]. Message:
^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/bin/entrypoint.py", line 579, in execute_task_cmd
_execute_task(
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/bin/entrypoint.py", line 454, in _execute_task
_dispatch_execute(ctx, load_task, inputs, output_prefix)
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/bin/entrypoint.py", line 216, in _dispatch_execute
utils.write_proto_to_file(v.to_flyte_idl(), os.path.join(ctx.execution_state.engine_dir, k))
^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/models/literals.py", line 693, in to_flyte_idl
return _literals_pb2.LiteralMap(literals={k: v.to_flyte_idl() for k, v in self.literals.items()})
^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/models/literals.py", line 989, in to_flyte_idl
scalar=self.scalar.to_flyte_idl() if self.scalar is not None else None,
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/micromamba/envs/runtime/lib/python3.12/site-packages/flytekit/models/literals.py", line 831, in to_flyte_idl
structured_dataset=self.structured_dataset.to_flyte_idl() if self.structured_dataset is not None else None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StructuredDataset' object has no attribute 'to_flyte_idl'
Expected behavior
This should work.
The bug might relate to this place.
The _literal_sd should be literals.StructuredDataset, but it is a StructuredDataset.
After some survey, I find that StructuredDatasetTransformerEngine's method dict_to_structured_dataset tries to build a Literal which takes in python native structured dataset, instead of literals.StructuredDataset, as can be seen here. This occurs when input literals are translated to python natives during a python task execution.
The fact is that the local run succeeds, but the remote one fails. I'll go on comparing the differences of exec behaviors btw the two.
Describe the bug
example code:
error message:
Expected behavior
This should work.
The bug might relate to this place.
The
_literal_sd
should beliterals.StructuredDataset
, but it is aStructuredDataset
.https://github.com/flyteorg/flytekit/blob/master/flytekit/types/structured/structured_dataset.py#L672-L679
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: