我尝试了各种方法来建立与S3兼容的服务的连接,但我一直收到错误。下面的代码抛出下面的错误。有什么想法吗?
import os
import boto
import boto.s3.connection
from boto.s3.key import Key
try:
conn = boto.s3.connect_to_region(region = 'nil',
aws_access_key_id = 'xx',
aws_secret_access_key = 'xx',
host = 'ds41s3-scs.xx.com',
calling_format = boto.s3.connection.OrdinaryCallingFormat(),
)
response = s3.list_buckets()
except Exception,e:
print str(e)
print "error"错误:
TypeError: connect_to_region() missing 1 required positional argument: 'region_name'https://stackoverflow.com/questions/44521873
复制相似问题