#!/usr/bin/python
import boto3
s3 = boto3.resource('s3')
bucket = s3.Bucket('amogh.****bucket')
FILE_NAME = 'abstract.png';
data = open(FILE_NAME, 'rb')
#### Image Uploaded
s3.Bucket('amogh.****bucket').put_object(Key=FILE_NAME, Body=data, ACL='public-read')
print ("Done")
”“每当我尝试在嵌入式linux平台上运行此脚本时,都会得到标题中提到的AttributeError。snapshot of the error