2012-03-14 210 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

回答

相關問題