New RunLLM response generated: >>>*# Question* He...
# runllm-flyte-trial
j
New RunLLM response generated: >>>*# Question* Here is the error message
>>```╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /home/jguo/projects/flyte_project/workflows/retrain_and_deploy_model.py:642 │ │ in <module> │ │ │ │ ❱ 642 │ fetch_and_upload_data(load_type="site") │ │ │ │ /home/jguo/projects/flyte_project/venv/lib/python3.10/site-packages/flytekit │ │ /core/base_task.py:358 in call │ │ │ │ ❱ 358 │ │ return flyte_entity_call_handler(self, *args, **kwargs) # typ │ │ │ │ /home/jguo/projects/flyte_project/venv/lib/python3.10/site-packages/flytekit │ │ /core/promise.py:1213 in flyte_entity_call_handler │ │ │ │ ❱ 1213 │ │ │ result = cast(LocallyExecutable, entity).local_execute(ch │ │ │ │ /home/jguo/projects/flyte_project/venv/lib/python3.10/site-packages/flytekit │ │ /core/base_task.py:335 in local_execute │ │ │ │ ❱ 335 │ │ │ outputs_literal_map = self.sandbox_execute(ctx, input_lite │ │ │ │ /home/jguo/projects/flyte_project/venv/lib/python3.10/site-packages/flytekit │ │ /core/base_task.py:415 in sandbox_execute │ │ │ │ ❱ 415 │ │ return self.dispatch_execute(ctx, input_literal_map) │ │ │ │ /home/jguo/projects/flyte_project/venv/lib/python3.10/site-packages/flytekit │ │ /core/base_task.py:746 in dispatch_execute │ │ │ │ ❱ 746 │ │ │ literals_map, native_outputs_as_map = self._output_to_lite │ │ │ │ /home/jguo/projects/flyte_project/venv/lib/python3.10/site-packages/flytekit │ │ /core/base_task.py:619 in _output_to_literal_map │ │ │ │ ❱ 619 │ │ │ │ │ raise TypeError(msg) from e │ ╰──────────────────────────────────────────────────────────────────────────────╯ TypeError: Failed to convert outputs of task ```
>>```'retrain_and_deploy_model.fetch_and_upload_data' at position 0:
USERAssertionError error=Failed to put data from /tmp/flyte9t3ezm8b/user_spacedrjmv7ip/local/raw_data_site_2022-08-31T170000Z_2 023-03-03T110000Z.csv to s3://jielian-dev/local/raw_data_site_2022-08-31T17:00:00Z_2023-03-03T11:00:00Z.c sv (recursive=False). Original exception: Session.__init__() got an unexpected keyword argument 'cache_regions', cause=Session.__init__() got an unexpected keyword argument 'cache_regions'```
>>
# Answer The error message indicates a
TypeError
due to an unexpected keyword argument
cache_regions
in the
Session.__init__()
method. This issue seems to be related to the Flyte task
fetch_and_upload_data
failing to upload data to an S3 bucket. To resolve this, ensure that the
Session
object is correctly initialized without the
cache_regions
argument. This might involve checking the configuration or the code where the
Session
is created. Would you like more details on how to troubleshoot or fix this issue? Sources: - https://github.com/flyteorg/flyte/issues/5553 - https://discuss.flyte.org/t/16295097/hi-all-we-ve-deployed-flyte-sandbox-on-k8s-on-company-s-own-/ Slack Link https://.slack.com/archives/CP2HDHKE1/p1727985618.074169 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.