Skip to content

Incompatible with oauth2client 2.0? #179

@logandg

Description

@logandg

I'm trying out this library for the first time and ran into an error using the build() function.

In [1]: from googleapiclient.discovery import build

In [2]: service = build('youtube', 'v3') 

Traceback (most recent call last):                                                                                                                                                                                                                               
  File "/usr/local/lib/python3.5/site-packages/googleapiclient/discovery_cache/__init__.py", line 38, in autodetect                                                                                                                                              
    from . import file_cache                                                                                                                                                                                                                                     
  File "/usr/local/lib/python3.5/site-packages/googleapiclient/discovery_cache/file_cache.py", line 32, in <module>                                                                                                                                              
    from oauth2client.locked_file import LockedFile                                                                                                                                                                                                              
ImportError: No module named 'oauth2client.locked_file'   

It looks like oauth2client released v2.0.0 a few days ago and moved a bunch of stuff into a contrib module. At first glance it looks like a quick fix to be compatible with oauth2client v2.0.0. I'm willing to create a pull request if it helps.

Metadata

Metadata

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions