# flytekit

Matheus Moreno

06/29/2022, 4:39 PM
Hi, everyone. I'm having some trouble using the sandbox to pass DataFrames between tasks. No IAM roles configured, no Service Accounts, just a task that returns a DataFrame. This is the error I'm having:
Copy code
File "/home/flyte/.venv/lib/python3.9/site-packages/flytekit/core/", line 447, in put_data
    raise FlyteAssertion(
flytekit.exceptions.user.FlyteAssertion: Failed to put data from /tmp/flyte-9ibktn0s/sandbox/local_flytekit/engine_dir to <s3://my-s3-bucket/metadata/propeller/search-filter-improvement-by-semantic-search-development-alqv5l4nv4kms759s7k2/n0/data/0> (recursive=True).

Original exception: Called process exited with error code: 1.  Stderr dump:

b'upload failed: ../../tmp/flyte-9ibktn0s/sandbox/local_flytekit/engine_dir/error.pb to <s3://my-s3-bucket/metadata/propeller/search-filter-improvement-by-semantic-search-development-alqv5l4nv4kms759s7k2/n0/data/0/error.pb> An error occurred (AccessDenied) when calling the PutObject operation: Access Denied\n'
Why is this happening? Sandbox image I'm using: Signature of the task:
Copy code
def check_new_amnt(sql_path: str, config_path: str) -> pd.DataFrame:
👀 1

Kevin Su

06/29/2022, 5:30 PM
would you mind sharing the whole code snippet? I just ran the example above with the same sandbox image, it works for me

Matheus Moreno

06/29/2022, 8:27 PM
Nevermid, I discovered the problem... I was overwriting the values-sandbox.yaml file because I didn't know it had configuration data in it. I am now appending the extra configurations and it works. Thank you!
👍 1