tipfy on Google App Engine (GAE) installing extensions
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.gz
Extracting in d:\temp\tmp2frf61
Now working in d:\temp\tmp2frf61\distribute-0.6.14
Building a Distribute egg in d:\temp\tmpq4-j_v
warning: no files found matching 'Makefile' under directory 'docs'
warnin开发者_JS百科g: 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
You should run bin/buildout from the dir where buildout.cfg is sitting, not from the bin dir. Do something like this
cd D:\downloads\tipfy.0.6.3.build\project
start bin/buildout
bootstrap
and buildout
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 with gae-auth
and I think tipfy-ext-auth
also suffers from it. Simply speaking tipfy-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.
精彩评论