thesamet / webilder

Wallpaper downloader and rotator that uses Flickr and Webshots.
http://www.webilder.org/
Other
30 stars 12 forks source link

webilder-0.7.3 0 : webilder_downloader - UnicodeEncodeError #53

Open Corin-EU opened 9 years ago

Corin-EU commented 9 years ago

webilder-0.7.3

webilder_downlloader exits with an error on a non-ASCII character when retriveing content:

url =  https://api.flickr.com/services/rest/?api_key=045379bc5368502f749af23d95a17c83&photo_id=16929226431&method=flickr.photos.getSizes
Traceback (most recent call last):
  File "/usr/local/bin/webilder_downloader", line 9, in <module>
    load_entry_point('Webilder==0.7.3', 'console_scripts', 'webilder_downloader')()
  File "/usr/local/lib/python2.7/dist-packages/webilder/downloader.py", line 195, in main
    download_all(notify)
  File "/usr/local/lib/python2.7/dist-packages/webilder/downloader.py", line 154, in download_all
    filter_photos(config, photos)
File "/usr/local/lib/python2.7/dist-packages/webilder/downloader.py", line 87, in filter_photos
    print _("Skipping non-landscape photo '%s'") % photo['title']
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 54: ordinal not in range(128)

Can something be done to fix this problem?

Corin-EU commented 7 years ago

Over two years later and photographs can still not be downloaded from Flickr because the unicode issue is still to be fixed.

url =  https://api.flickr.com/services/rest/?api_key=045379bc5368502f749af23d95a17c83&photo_id=34721603982&method=flickr.photos.getSizes
   Traceback (most recent call last):
   File "/usr/local/bin/webilder_downloader", line 9, in <module>
   load_entry_point('Webilder==0.7.3', 'console_scripts', 'webilder_downloader')()
   File "/usr/local/lib/python2.7/dist-packages/webilder/downloader.py", line 195, in main     download_all(notify)
   File "/usr/local/lib/python2.7/dist-packages/webilder/downloader.py", line 154, in download_all
filter_photos(config, photos)
   File "/usr/local/lib/python2.7/dist-packages/webilder/downloader.py", line 87, in filter_photos
   print _("Skipping non-landscape photo '%s'") % photo['title']
   UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 116: ordinal not in range(128)

It appears that this project has been abandoned.

thesamet commented 7 years ago

Hey Corin, yes - I am unable to work on this project at this point. Pull requests are welcome.