that was for download_dataset.
This is for download_model
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_model' 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-228ab61n/sandbox/local_flytekit/dac9b973e3f082851dd2cf1f15c45517/model_cache to union:///bg/lowrystcol/development/flytesnacks/afhgqdx24fjkhpfpbw27-n1-0/cd1f94633afd359437b90a55ff936cdf (recursive=True).
Original exception: This event loop is already running., cause=This event loop is already running