Using boto3 on GAE - getting issue with Popen

2019-07-06 00:43发布

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

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'

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

1条回答
贪生不怕死
2楼-- · 2019-07-06 01:44

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

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.

查看更多
登录 后发表回答