Tipfy 在 Google App Engine (GAE) 上安装扩展
我正在尝试让 tipfy 处理 Google 应用引擎 (GAE)。我使用的是Windows XP。
“hello world”示例运行良好。我不明白的是如何正确安装扩展。
我正在尝试使用 “多重身份验证”示例没有取得太大成功。
我收到以下错误:
ImportError: No module named wtforms.validators
我已尝试按照 文档,其中显示要运行:
bootstrap.py --distribute
返回:
正在下载 http://pypi.python.org/包/source/d/distribute/distribute-0.6.14.tar.gz
在 d:\temp\tmp2frf61 中提取
现在工作于 d:\temp\tmp2frf61\distribute-0.6.14
构建一个分发鸡蛋 d:\temp\tmpq4-j_v
警告:未找到匹配的文件 目录“docs”下的“Makefile”
警告:未找到匹配的文件 目录下的“indexsidebar.html” “文档”
d:\temp\tmpq4-j_v\distribute-0.6.14-py2.5.egg
安装目录 d:\temp\tmpq4-j_v
然后运行:
垃圾箱/构建
并获取以下内容:
同时: 正在初始化。 错误:无法打开 D:\downloads\tipfy.0.6.3.build\project\bin\buildout.cfg
因为 bin 目录中不存在该文件,我假设应该在我之后将其放置在那里已经跑过:
bootstrap.py --distribute
I'm trying to get tipfy working on Google App Engine (GAE). I'm using Windows XP.
The "hello world" example is working fine. What I'm don't understand is how to correctly install extensions.
I'm trying to use the "multi-auth" example without much success.
I'm receiving the following error:
ImportError: No module named wtforms.validators
I've tried installing the extension, as per the documentation, which says to run:
bootstrap.py --distribute
Which returns:
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gzExtracting in d:\temp\tmp2frf61
Now working in
d:\temp\tmp2frf61\distribute-0.6.14Building a Distribute egg in
d:\temp\tmpq4-j_vwarning: no files found matching
'Makefile' under directory 'docs'warning: no files found matching
'indexsidebar.html' under directory
'docs'd:\temp\tmpq4-j_v\distribute-0.6.14-py2.5.egg
install_dir d:\temp\tmpq4-j_v
I then run:
bin/buildout
and get the following:
While:
Initializing.
Error: Couldn't open D:\downloads\tipfy.0.6.3.build\project\bin\buildout.cfg
Because that file doesn't exist in the bin directory, which I'm assuming should have been placed there after I've ran:
bootstrap.py --distribute
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该从 buildout.cfg 所在的目录运行 bin/buildout,而不是从 bin 目录。
做这样的事情
You should run bin/buildout from the dir where buildout.cfg is sitting, not from the bin dir.
Do something like this
bootstrap
和buildout
问题是由版本 0.6.3 中的发行版损坏引起的。最好使用 all-in-one 包。另一个问题是缺少
wtforms
。我遇到了和你一样的问题,但是使用gae-auth
,我认为tipfy-ext-auth
也遇到了这个问题。简单地说,tipfy-ext-auth
已更新为可与 Tipfy 0.7 配合使用,而您正在使用 0.6.3。0.7版本是开发版本,尚未公开发布。因此,一种选择是直接从 hg 存储库开始使用 0.7。但要注意:0.7 与 0.6.3 不兼容。
另一种选择是直接下载最新的 wtforms 模块版本并将它们放在
app/lib
目录下。我为我的项目做了这个并且它有效。bootstrap
andbuildout
problems are caused by broken distribution in version 0.6.3 IMHO. It is better to use all-in-one package.Another issue is are missing
wtforms
. I got same problem like you but withgae-auth
and I thinktipfy-ext-auth
also suffers from it. Simply speakingtipfy-ext-auth
is updated to work with tipfy 0.7 and you are using 0.6.3.Version 0.7 is development version and is not released to public yet. So one option is to start using 0.7 directly from hg repository. But be careful: 0.7 is not compatible with 0.6.3.
Another option is to just download wtforms modules from latest version and put them under
app/lib
directory. I did this for my project and it worked.