在GAE上使用boto3-Popen出现问题 [英] Using boto3 on GAE - getting issue with Popen

查看:42
本文介绍了在GAE上使用boto3-Popen出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Google App Engine中运行一些python代码,该代码会将消息发送到Amazon SQS.

I am attempting to run some python code in Google App Engine which sends a message to Amazon SQS.

我已经安装了boto3,但是尝试将其导入到AppEngine服务时出现错误:

I have installed boto3, but I am getting an error when trying to import it into my AppEngine service:

File "/base/data/home/apps/s~myservice/test.408770177247417142/lib/botocore/credentials.py", line 763, in ProcessProvider
    def __init__(self, profile_name, load_config, popen=subprocess.Popen):
AttributeError: 'module' object has no attribute 'Popen'

有人知道如何在GAE上运行boto3吗?谢谢.

Does anyone know how to get boto3 running on GAE? Thanks.

推荐答案

由于应用引擎沙箱,boto3无法与应用引擎一起使用.请使用最新版本的boto2.

boto3 doesn't work with app engine because of the app engine sandbox. Use the latest version of boto2 instead.

我应该补充一点,以上内容适用于GAE标准环境. boto3可以与GAE flexible一起使用.如果您需要更多信息,请更新您的问题.

I should add that the above is for GAE standard environment. boto3 might work with GAE flexible. Please update your question if you need further info.

这篇关于在GAE上使用boto3-Popen出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆