here is the code
with open('browse_venues_current_content.json', 'w') as my_file: json.dump(endproduct, my_file) import boto3 s3 = boto3.resource('s3') result = s3.meta.client.upload_file('my_file', 'shofi-stuff', 'browsecontentcreatorjson.json') print(result)
here is the error:
line 50, in getsize return os.stat(filename).st_size FileNotFoundError: [Errno 2] No such file or directory: './my_file'
what should I be doing?
https://stackoverflow.com/questions/65546007/attempting-to-upload-file-with-boto3-from-same-script-it-was-created-in-but-gett January 03, 2021 at 10:07AM
没有评论:
发表评论