【发布时间】:2012-11-16 19:16:14
【问题描述】:
可能重复:
PyDev project for Google App Engine not finding webapp2
我正在学习 helloworld 教程,无法从 Python 连接;
这是 app.yaml 文件:
application: "ceemee11111"
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: helloworld.app
builtins:
- remote_api: on
这是 helloworld.py 的开始:
import cgi
import datetime
import urllib
import webapp2
from google.appengine.ext import db
from google.appengine.api import users
class Greeting(db.Model):
"""Models an individual Guestbook entry with an author, content, and date."""
author = db.StringProperty()
content = db.StringProperty(multiline=True)
date = db.DateTimeProperty(auto_now_add=True)
在 Python shell 中我 chdir 到 helloworld 导入你好世界
并得到导入错误“没有名为 webapp2 的模块”
应用程序在 localhost 和 ceemee11111.appspot.com 中运行,没有错误。 作为测试,我注释掉了“import webapp2”并再次尝试并得到了错误 “没有名为 google.appengine.ext 的模块”
请给点意见
丹
应用
【问题讨论】:
标签: python export google-cloud-datastore