Google App Engine: from six.moves import http_client no module named moves

末鹿安然 提交于 2019-11-28 14:28:34
Dan Cornilescu

The traceback indicates that you have some dependencies not installed in your app's lib directory, they're picked up from your local python installation libraries. Note the .../python2.7/site-packages/google/api_core/gapic_v1 path in there.

You need to install all your app's dependencies in your app's lib dir, like mentioned in here.

I had this problem too, make sure you "vendor in" all your dependencies, e.g.

pip install -t lib six==1.9.0

To resolve this error, I had to specify the version to match the one used in my local installation of python libraries added by the gcloud tool

This issue drove me crazy for quite some time and nothing online helped. I finally removed grpcio from the app.yaml libraries and it worked:

libraries:
 - name: grpcio
   version: latest
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!