Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service is None #12

Closed
fredfanatics opened this issue Mar 16, 2021 · 4 comments
Closed

service is None #12

fredfanatics opened this issue Mar 16, 2021 · 4 comments

Comments

@fredfanatics
Copy link

I get the following error:

`TypeError Traceback (most recent call last)
in
10 print(service)
11 # Init the album manager
---> 12 album_manager = Album(service)
13
14 # Create a new album

~/jupyter/lib/python3.7/site-packages/gphotospy/album.py in init(self, service)
170 """
171
--> 172 self._service = service["service"]
173 self._secrets = service["secrets"]
174

TypeError: 'NoneType' object is not subscriptable`

@headphonejames
Copy link

same.

@cschimke1
Copy link

I am having this problem as well.

@durip
Copy link

durip commented Apr 12, 2021

same for me ..., but I figured it out
Its because google-api-python-client version 2.x.
davidedelpapa please migrate gphotospy to this version (https://github.com/googleapis/google-api-python-client/blob/master/UPGRADING.md)

temporary solution:
sudo python3 -m pip install 'google-api-python-client==1.12.8' --force-reinstall

@davidedelpapa
Copy link
Owner

Closed as the latest version (0.2.0) gets on par with Google API 2.0.0. Thank you all for contributing to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants