GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — AttributeError: module 'googleapiclient' has no attribute '__version__' · Issue #870 · googleapis/google-api-python-client

AttributeError: module 'googleapiclient' has no attribute '__version__' #870

New issue
Copy link
New issue
Copy link
Closed
#871
Closed
AttributeError: module 'googleapiclient' has no attribute '__version__'#870
#871
Copy link
Assignees
yoshi-automation

Description

@davidstrouk
davidstrouk
opened on Apr 20, 2020
Issue body actions

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__'

google-api-python-client/apiclient/__init__.py

Line 22 in 84d4561

__version__ = googleapiclient.__version__

i guess this happens since you have removed __version__ var from googleapiclient/__init__.py

f706cfd#diff-b926d296d4c856bcbf877809e4523562L15

can you please fix? @busunkim96 @mik-laj @crwilcox

Traceback:

  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__'
Reacted by Alejandro Vales, Kamil Breguła, marco baringer, michaelbaylor, Tuomas Tikkanen and Michael Weiss

Activity

  1. mik-laj commented on Apr 20, 2020

    @mik-laj
    mik-laj
    on Apr 20, 2020
    Contributor
    More actions

    Thanks for the report.
    https://github.com/googleapis/google-api-python-client/blob/master/apiclient/__init__.py#L22

    Reacted by marco baringer and Michael Weiss
  2. busunkim96 commented on Apr 20, 2020

    @busunkim96
    busunkim96
    on Apr 20, 2020
    Contributor
    More actions

    @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.

    from googleapiclient import discovery
    Reacted by David Strouk, gcuabo-lumaprints and Michael Weiss
  3. jpmckinney
    added a commit that references this issue on Apr 20, 2020

    Avoid google-api-python-client==1.8.1 googleapis/google-api-python-cl…

    fb48429
  4. gcf-merge-on-green
    closed this as completedin #871on Apr 21, 2020
  5. gcf-merge-on-green
    added a commit that references this issue on Apr 21, 2020

    Remove apiclient.__version__ (#871)

    1d8ec68
  6. Prince-Mendiratta
    added a commit that references this issue on Apr 21, 2020

    fix for 'googleapiclient' has no '__version__' bug

    7ff567a
  7. bc
    added a commit that references this issue on Apr 21, 2020

    #5 attempting fix provided in googleapis/google-api-python-client#870

    a51f46b
  8. daviddemeij
    added a commit that references this issue on Apr 21, 2020

    Update _cloud_api_utils.py

    e0cde60
  9. JoelSharp
    added a commit that references this issue on May 14, 2020

    Update gfiles.py to handle the deprecation of apiclient library

    e9b7191
  10. JustinBeckwith
    assigned
    yoshi-automation
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @yoshi-automation
    yoshi-automation

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.