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', 'browse_venues_current_content.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?