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

后端 未结 3 395
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 00:53

Okie dokie,

I\'m trying to get Google\'s Dialogflow python API working with Google App Engine, and I seem to be running into issues when I run the application. I hav

相关标签:
3条回答
  • 2020-12-12 01:24

    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.

    0 讨论(0)
  • 2020-12-12 01:33

    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

    0 讨论(0)
  • 2020-12-12 01:38

    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
    
    0 讨论(0)
提交回复
热议问题