Using Google Cloud Client Library and Google App Engine SDK Together -
i trying use google cloud client library on google app engine. however, cloud client library , app engine sdk use google
import name, , there naming conflicts. how them work together?
when try importing google cloud client library module, following error:
>> import google.cloud.datastore traceback (most recent call last): file "<console>", line 1, in <module> file "c:\[...]\libs\google\cloud\datastore\__init__.py", line 52, in <module> google.cloud.datastore.batch import batch importerror: no module named cloud.datastore.batch
the reason import error occurs because name google
has been imported app engine sdk. can confirmed running command:
>>> print google.__path__ ['c:\\program files (x86)\\google\\cloud sdk\\google-cloud-sdk\\ platform\\google_appengine\\google']
notice path points sdk.
any ideas on how resolve name conflict?
Comments
Post a Comment