ImportError: Unable to import name definition
I am using Google Python API client and one of the lines it wants you to use:
from apiclient import discovery
When I run this, it returns an error:
ImportError: Unable to import name discovery
Note: the module is apiclient
installed and updated
Thank you, guys
+5
Lewys Gardner
source
to share
3 answers
You should be able to get these dependencies with this simple setup:
sudo pip install --upgrade google-api-python-client
See also: fooobar.com/questions/70825 / ...
+3
Neeraj
source
to share
At some point, the apiclient module name was changed. If you can't import discovery from apiclient try:
from googleapiclient import discovery
Hope it helps.
+2
MichaΕ JabΕoΕski
source
to share
Try it
sudo pip install --upgrade google-api-python-client
I got a response from this link: Python apiclient installer module
0
Marvelous Ikechi
source
to share