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

Issue building the list of Flickr photos #1

Open
lasombra opened this issue Mar 26, 2019 · 3 comments
Open

Issue building the list of Flickr photos #1

lasombra opened this issue Mar 26, 2019 · 3 comments

Comments

@lasombra
Copy link

I'm using Fedora 29 x86_64.
Python 3 on a virtualenv:

» python --version
Python 3.7.2

Following the instructions, every time I reach photo 61 I see this error message:

61 Photo(id=b'32716843128', title=b'')
Traceback (most recent call last):
  File "/home/iweiss/projects/flickr2gphotos/lib/python3.7/site-packages/flickr_api/objects.py", line 1313, in getPhotoFile
    return self.getSizes()[size_label]["source"]
KeyError: 'Original'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "build_migration_photos_list.py", line 25, in <module>
    photo_url = photo.getPhotoFile("Original")
  File "/home/iweiss/projects/flickr2gphotos/lib/python3.7/site-packages/flickr_api/objects.py", line 1315, in getPhotoFile
    raise FlickrError("The requested size is not available")
flickr_api.flickrerrors.FlickrError: The requested size is not available

This is from an Auto Upload album, so I think that's why all of them have an empty title.

@yakneens
Copy link
Owner

Hi, sorry I didn't notice your issue earlier. The problem appears to be that the "Original" resolution of your photos is not available (at least for that photo). I think you need to decide what you want to happen here. It's easy enough to request other sizes.

@lasombra
Copy link
Author

No worries. Interesting, so I think the next best step would be to pick the highest resolution photo if the original resolution is not available.

@yakneens
Copy link
Owner

yakneens commented Apr 15, 2019 via email

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

2 participants