Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
walk_set error #80
I'm on Python 3.4.5 and the following code:
flickr = flickrapi.FlickrAPI(my_api_key, my_secret_key, format='parsed-json') photoset = flickr.walk_set('72157640799982165')
Gives this error:
File "/usr/local/venv/myvenv/lib/python3.4/site-packages/flickrapi/core.py", line 96, in decorated raise ValueError(msg % (method.func_name, self.default_format)) AttributeError: 'function' object has no attribute 'func_name'
It does clear that error, but now gives me an issue with using parsed-json as the format. While I would prefer JSON, it's not the end of the world for me to use etree.
File "/usr/local/venv/myvenv/lib/python3.4/site-packages/flickrapi/core.py", line 96, in decorated raise ValueError(msg % (method.__name__, self.default_format)) ValueError: Function walk_set requires that you use ElementTree ("etree") as the communication format, while the current format is set to "parsed-json".
This is documented ("Uses the ElementTree format, incompatible with other formats."), but I understand your fondness of JSON. As an alternative to switching your entire application to ElementTree, you could also extend
If you do this, please send it in as a pull request so that I can merge it into the FlickrAPI library.