AttributeError:“模块”对象没有属性“选择”

时间:2018-08-09 07:30:19

标签: python-2.7 amazon-s3 embedded-linux

#!/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

0 个答案:

没有答案