在谷歌的App Engine运行博托(GAE)App、Engine、GAE

2023-09-11 08:57:43 作者:迎面的心魔惧怕什么

我是新来的Python,并在希望的帮助如何在GAE Python应用程序来控制的Amazon EC2实例进口boto.ec2。我使用的PyDev / Eclipse中,并已在我的Mac安装博托,但使用简单的进口博托'不工作(我得到:无模块名为boto.ec2)。我读过博托支持在GAE上,但我一直没能找到任何地方的指令。谢谢!

I'm new to Python and was hoping for help on how to 'import boto.ec2' on a GAE Python application to control Amazon EC2 instances. I'm using PyDev/Eclipse and have installed boto on my Mac, but using simply 'import boto' does not work (I get: : No module named boto.ec2). I've read that boto is supported on GAE but I haven't been able to find instructions anywhere. Thanks!

推荐答案

这听起来像你没有复制的博托code到你的应用程序引擎的根目录下。

It sounds like you haven't copied the boto code to the root of your app engine directory.

宝途适用于GAE,但谷歌并不为您提供的code。一旦你把它复制到你的GAE目录的根目录下,开发服务器应该工作,和你的下一个上载后,将工作的督促服务器上也是如此。

Boto works with GAE but Google doesn't supply you with the code. Once you copy it into the root of your GAE directory, the dev server should work, and after your next upload it will work on the prod server as well.