Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Can';t在谷歌应用程序引擎中导入数据存储_Python_Python 2.7_Google App Engine_Google Cloud Platform_Google Cloud Datastore - Fatal编程技术网

Python Can';t在谷歌应用程序引擎中导入数据存储

Python Can';t在谷歌应用程序引擎中导入数据存储,python,python-2.7,google-app-engine,google-cloud-platform,google-cloud-datastore,Python,Python 2.7,Google App Engine,Google Cloud Platform,Google Cloud Datastore,我正试图以这种方式将数据存储导入GAE中的代码 from google.cloud import datastore 不幸的是,我在stackdriver中得到了一些类似这样的错误消息 from grpc._cython import cygrpc as _cygrpc ImportError: dynamic module does not define init function (initcygrpc) from google.cloud.datastore_v1

我正试图以这种方式将数据存储导入GAE中的代码

from google.cloud import datastore
不幸的是,我在stackdriver中得到了一些类似这样的错误消息

     from grpc._cython import cygrpc as _cygrpc
ImportError: dynamic module does not define init function (initcygrpc)
     from google.cloud.datastore_v1 import types 
ImportError: cannot import name types
还是像这样

     from grpc._cython import cygrpc as _cygrpc
ImportError: dynamic module does not define init function (initcygrpc)
     from google.cloud.datastore_v1 import types 
ImportError: cannot import name types
有人知道原因吗? 提前谢谢

==
环境:标准
语言:python

运行时:python27

这是通用客户端数据存储库,它不再与标准环境GAE沙盒限制兼容。见相关

发件人:

注意:对于用Python编写的应用程序引擎应用程序,不再推荐使用Google数据存储数据库客户端库;使用 改为谷歌数据存储NDB客户端库

因此,切换到(我发现它更优秀,具有更多的功能,针对GAE进行了优化,并且有更好的文档记录,就在GAE特定的文档区域)