You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: module 'googleapiclient' has no attribute '__version__' #870
When importing new version of google-api-python-client from apiclient import discovery
i'm getting the error AttributeError: module 'googleapiclient' has no attribute '__version__'
File "/usr/local/lib/python3.7/site-packages/apiclient/__init__.py", line 22, in <module>
__version__ = googleapiclient.__version__
AttributeError: module 'googleapiclient' has no attribute '__version__'
@davidstrouk Thanks for the report! As an FYI, we generally recommend you import from googleapiclient now. You shouldn't have to make any other changes.
fromgoogleapiclientimportdiscovery
Reacted by David Strouk, gcuabo-lumaprints and Michael Weiss
Activity
mik-laj commentedon Apr 20, 2020
Thanks for the report.
https://github.com/googleapis/google-api-python-client/blob/master/apiclient/__init__.py#L22
busunkim96 commentedon Apr 20, 2020
@davidstrouk Thanks for the report! As an FYI, we generally recommend you import from
googleapiclientnow. You shouldn't have to make any other changes.Avoid google-api-python-client==1.8.1 googleapis/google-api-python-cl…
Remove apiclient.__version__ (#871)
fix for 'googleapiclient' has no '__version__' bug
#5 attempting fix provided in googleapis/google-api-python-client#870
Update _cloud_api_utils.py
Update gfiles.py to handle the deprecation of apiclient library