Traceback (most recent call last):
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/bin/entrypoint.py", line 126, in _dispatch_execute
outputs = task_def.dispatch_execute(ctx, idl_input_literals)
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/core/base_task.py", line 800, in dispatch_execute
literals_map, native_outputs_as_map = run_sync(
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/utils/asyn.py", line 93, in run_sync
return self._runner_map[name].run(coro)
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/utils/asyn.py", line 72, in run
res = fut.result(None)
File "/opt/micromamba/envs/runtime/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/opt/micromamba/envs/runtime/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/core/base_task.py", line 655, in _output_to_literal_map
raise e
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/core/type_engine.py", line 1299, in async_to_literal
lv =
transformer.to_literal(ctx, python_val, python_type, expected)
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/types/directory/types.py", line 502, in to_literal
ctx.file_access.put_data(source_path, remote_directory, is_multipart=True, batch_size=batch_size)
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/core/data_persistence.py", line 593, in put_data
raise FlyteUploadDataException(
Message:
FlyteUploadDataException: SYSTEM
UploadDataError error=Failed to convert outputs of task 'bert-fine-tune.download_dataset' at position 0.
Failed to convert type <class 'pathlib.PosixPath'> to type <class 'flytekit.types.directory.types.FlyteDirectory'>.
Error Message: Failed to put data from /tmp/flyte-ed1a6zqr/sandbox/local_flytekit/a4bbd6b3fd6241ad67f02f37ba794cbf/dataset_cache to union:///uq/lowrystcol/development/flytesnacks/aglkh9mczm9xrw4xhwvt-n0-3/c14f82ba574e70a47e3859292e37dba1 (recursive=True).
Original exception: This event loop is already running., cause=This event loop is already running