2012-03-14 202 views
0

我试图在Python/Google App Engine项目上设置Tipfy扩展,这些扩展已被引入。我遵循所有关于运行bootstrap.py然后bin/buildout的说明。一切似乎已经奏效,但现在当我尝试导入tipfy.ext.auth,我得到这个错误:ImportError:无法导入名称cached_property

File "C:\{project}\app\lib\dist\tipfy\ext\auth\__init__.py", line 15, in <module> 
    from tipfy import abort, cached_property, import_string, redirect 
ImportError: cannot import name cached_property 

我现在有点失落和真的不知道在哪里,甚至寻找解决方案对我来说,对于Python和GAE来说,这是非常新的。任何帮助或方向如何让这个扩展工作将不胜感激。

+0

可能的解决方案如下:http://tipfy.googlecode.com/hg/docs/source/guide/migrating.rst取而代之,从werkzeug中删除该导入和导入。 – bernie 2012-03-14 23:02:21

+0

@AdamBernier - 谢谢,完美的工作! – velojason 2012-03-14 23:38:41

+0

没问题。按照协议,我想我应该输入这个答案。如果你愿意,你可以接受,但不必这样做。 – bernie 2012-03-14 23:42:20

回答

相关问题