From 3be65552271baf2f5897259d4fe6bb8c176278ea Mon Sep 17 00:00:00 2001 From: slyobard Date: Thu, 5 Sep 2024 10:41:53 +0200 Subject: [PATCH] Fix missing import in python snippet to connect to S3 personnal bucket using s3fs --- web/src/core/usecases/s3CodeSnippets.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/core/usecases/s3CodeSnippets.ts b/web/src/core/usecases/s3CodeSnippets.ts index 873560bc8..087f58b01 100644 --- a/web/src/core/usecases/s3CodeSnippets.ts +++ b/web/src/core/usecases/s3CodeSnippets.ts @@ -274,6 +274,7 @@ minio$list_buckets() `; case "Python (s3fs)": return ` +import os import s3fs os.environ["AWS_ACCESS_KEY_ID"] = '${credentials.AWS_ACCESS_KEY_ID}' os.environ["AWS_SECRET_ACCESS_KEY"] = '${credentials.AWS_SECRET_ACCESS_KEY}'