eayoungs
eayoungs

Reputation: 11

Google calendar API error under Python3

I'm working with the google-api-python-client library with the following setup:

I'm getting error from the following code: AttributeError: 'module' object has no attribute 'file'

store = oauth2client.file.Storage(credential_path)

The code is from the Google Python Quickstart example and runs fine under Python 2.7.10

Thanks in advance!

Upvotes: 0

Views: 290

Answers (1)

eayoungs
eayoungs

Reputation: 11

I was able to get it to work by rewriting the import statement: from oauth2client.file import Storage Not sure why this works, but it does.

Upvotes: 1

Related Questions