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

相关问题