alexis-mignon / python-flickr-api

A python implementation of the Flickr API
BSD 3-Clause "New" or "Revised" License
367 stars 108 forks source link

'dict_keys' object has no attribute 'sort' in flickr_api/api.py #99

Closed cschar closed 5 years ago

cschar commented 6 years ago

Hi,

I got the above error when trying to tunr the code in python 3.6 , anaconda environment.

https://stackoverflow.com/a/28039561/403403 points to a possible issue:

There is no .sort() on dict_keys anymore, it requires a 'sorted' command

ghost commented 6 years ago

I am also having problems with this where you able to solve it?

cschar commented 6 years ago

Yeah just clone it, fix the line to use sorted instead and then

pip install -e . (When you are inside the cloned directory to install into your pip env)