I am using Google's python API client, and one of the lines it wants you to use is:
from apiclient import discovery
When I run this it returns the error:
ImportError: cannot import name discovery
Note: the apiclient
module is installed and up to date
Thanks guys
At some point apiclient module name was changed. If you cannot import discovery from apiclient, then try:
from googleapiclient import discovery
Hope this helps.
You should be able to get these dependencies with this simple install:
sudo pip install --upgrade google-api-python-client
See also: https://stackoverflow.com/a/23521799/1115187
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With