Unable to read instance data, giving up error in python boto

女生的网名这么多〃 提交于 2019-12-05 02:28:17

I had the same error when using a .boto file in the same folder as the script. It has to be on the base of the home folder.

You can try the following, its work for me


from boto.api import env
env.aws_access_key_id = boto.config.get("Credentials", "aws_access_key_id")
env.aws_secret_access_key = boto.config.get("Credentials", "aws_secret_access_key")

I think that's the same issue as #1054.

You can add the code below at your settings.py to disable S3 handler:

DOWNLOAD_HANDLERS: {'s3': None}

That works for me.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!