Python can't find apiclient.discovery

623 views
Skip to first unread message

Jordan Nickerson

unread,
Feb 24, 2012, 5:38:42 PM2/24/12
to Google API Python Client
I've been trying to run the translate example, but every time i try to
execute it i get the following error: 'module' object has no attribute
'discovery'. I checked, and have confirmed that the apiclient
directory in my Python install has a discovery.py.

Does anyone know why I would keep getting this message? FYI, when i do
"Import apiclient" from the command line, it only has the following
modules within it: 'APIClient', 'APIClient_SharedSecret',
'RateLimiter', 'base', and 'ratelimiter'

Thank you,
Jordan

Joe Gregorio

unread,
Feb 27, 2012, 11:16:05 AM2/27/12
to google-api-p...@googlegroups.com

It looks like you have a copy of https://github.com/shazow/apiclient
installed, which
is the 'apiclient' you end up importing, and not the google-api-python-client.

-joe

>
> Thank you,
> Jordan

Reply all
Reply to author
Forward
0 new messages