ImportError: No module named apiclient.discovery

3,581 views
Skip to first unread message

Alex Tran via StackOverflow

unread,
Aug 16, 2013, 3:15:08 AM8/16/13
to google-appengin...@googlegroups.com

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



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/18267749/importerror-no-module-named-apiclient-discovery

Nijin Narayanan via StackOverflow

unread,
Aug 16, 2013, 3:55:08 AM8/16/13
to google-appengin...@googlegroups.com

apiclient is not in the list of third party library supplied by the appengine runtime: http://developers.google.com/appengine/docs/python/tools/libraries27 .

You need to copy apiclient into your project directory & you need to copy these uritemplate & httplib2 too.

Note: Any third party library that are not supplied in the documentation list must copy to your appengine project directory



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/18267749/importerror-no-module-named-apiclient-discovery/18268460#18268460

Alex Tran via StackOverflow

unread,
Aug 16, 2013, 4:20:08 AM8/16/13
to google-appengin...@googlegroups.com

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

Joe Gregorio via StackOverflow

unread,
Aug 16, 2013, 7:45:13 AM8/16/13
to google-appengin...@googlegroups.com

There is a download for the Google API Python Client library that contains the library and all of its dependencies, named something like google-api-python-client-gae-<version>.zip in the downloads section of the project. Just unzip this into your App Engine project.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/18267749/importerror-no-module-named-apiclient-discovery/18272535#18272535
Reply all
Reply to author
Forward
0 new messages