2

在使用帶有Python的Endpoints API時,我無法導入模塊endpoints_proto_datastore.ndb。有人遇到過類似的問題嗎?請讓我知道可能是什麼問題。ImportError:沒有名爲endpoints_proto_datastore.ndb的模塊

我對Python使用Google App Engine SDK 1.7.5。

+0

我是'endpoints-proto-datastore'的作者。是否存在您建議從'endpoints_proto_datastore.ndb'導入的參考文檔,演示文稿或幻燈片? – bossylobster 2013-03-06 03:21:49

+0

我正在關注Youtube http://www.youtube.com/watch?v=9wNRUd9E1jM Appengine:雲端點第二部分中提供的視頻。 – 2013-03-06 03:37:33

+0

好聽!如果您跳到7分鐘,我會介紹如何將圖書館納入您的項目。 – bossylobster 2013-03-06 04:18:16

回答

4

看起來您正在使用第三方庫,因爲endpoints_proto_datastore不是核心App Engine SDK的一部分。

總之,你將不得不將這個庫包含在你的項目中,然後確保它在路徑中。有關更多詳細信息,請參閱此answer

+1

正確。可以在此處下載:https://code.google.com/p/endpoints-proto-datastore/ – 2013-03-05 22:11:02

+1

更正http://code.google.com/p/endpoints-proto-datastore/source/browse/#git %2Fendpoints_proto_datastore%253Fstate%253Dclosed我包含endpoints_proto_datastore它適用於我。謝謝 – 2013-03-06 03:34:26

相關問題