我正试图上传一个大文件约46Gb的文件到S3从电子病历使用boto。 我写的代码是
>>> import math, os
>>> import boto
>>> from filechunkio import FileChunkIO
# Connect to S3
>>> c = boto.connect_s3()
>>> b = c.get_bucket('mybucket')
这给我带来了一个错误:
UnboundLocalError: local variable 'region_name' referenced before assignment
您可以在以下链接中找到相同错误的整个堆栈:
https://github.com/boto/boto/issues/2624
有人能告诉我这个问题的解决方法吗?你知道吗
我使用的是
boto.s3.connection.S3Connection
,效果非常好。你知道吗这是我的代码,它可能会帮助您:
我在用
boto==2.40.0
相关问题 更多 >
编程相关推荐