Search code examples
pythongoogle-app-enginegoogle-translategoogle-api-python-clientgoogle-translation-api

Why is my Python App Engine app using the Translate API getting an error of ImportError: No module named apiclient.discovery?


I got this error in Google App Engine's Python have used Google Translate API, But I don't know how to fix,

<module>
from apiclient.discovery import build
ImportError: No module named apiclient.discovery

I'll try to set environment which indicates to Google App Engine SDK, And upload to Google Apps Engine again, always get the error,

Error: Server Error

The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it.

What is wrong, and how do I fix it?


Solution

  • You should be able to get these dependencies with this simple install:

    sudo pip install --upgrade google-api-python-client
    

    This is described on the quick start page for python.