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

Question

Asked By – Huy Tower

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.

Please tell me how to fix,

Thanks

UPDATE : Fixed
Follow Nijjin’s help,
I fixed problems by adding the following folders,

apiclient, gflags, httplib2, oauth2client, uritemplate

If you still got problem, please consider below Answer of this page to get more info. ex. : Varum answer, etc …

Now we will see solution for issue: Why is my Python App Engine app using the Translate API getting an error of ImportError: No module named apiclient.discovery?


Answer

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.

This question is answered By – Jorvis

This answer is collected from stackoverflow and reviewed by FixPython community admins, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0