acoustic-carpenter-78188
11/13/2023, 11:08 PM[3/3] currentAttempt done. Last Error: SYSTEM::Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flytekit/exceptions/scopes.py", line 165, in system_entry_point
return wrapped(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/flytekit/core/base_task.py", line 662, in dispatch_execute
literals_map, native_outputs_as_map = self._output_to_literal_map(native_outputs, exec_ctx)
File "/usr/local/lib/python3.10/site-packages/flytekit/core/base_task.py", line 561, in _output_to_literal_map
raise TypeError(msg)
Message:
Failed to convert outputs of task 'test.t1' at position 0:
'list' object has no attribute 'startswith'
SYSTEM ERROR! Contact platform administrators.
That's because asyncFileSystem (s3fs) return [None] when calling file_system.put here
Type
☑︎ Bug Fix
☐ Feature
☐ Plugin
Are all requirements met?
☑︎ Code completed
☑︎ Smoke tested
☐ Unit tests added
☐ Code documentation added
☐ Any pending items have an associated Issue
Complete description
from flytekit import task, ImageSpec, workflow
from flytekit.types.file import FlyteFile
new_flytekit = "git+https://github.com/flyteorg/flytekit.git@c49ceb779cb4617053004c94d4bd71b0622c63b2"
image = ImageSpec(apt_packages=["git"], packages=[new_flytekit], registry="pingsutw")
@task(container_image=image)
def t1() -> FlyteFile:
tmp_file = "/tmp/abc"
with open(tmp_file, "w") as f:
f.write("wow")
return tmp_file
@workflow()
def wf():
t1()
if __name__ == '__main__':
wf()
image▾
acoustic-carpenter-78188
11/14/2023, 9:00 PM