sybrenstuvel / flickrapi

Python Flickr API implementation
https://stuvel.eu/flickrapi
Other
155 stars 33 forks source link

Python 3.9: AttributeError in core.py #129

Closed grddavies closed 3 years ago

grddavies commented 3 years ago

Python version 3.9

Traceback:

File "... /lib/python3.9/site-packages/flickrapi/core.py", line 690, in data_walker
    photoset = rsp.getchildren()[0]
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'

As of python 2.7 and 3.9 xml.etree.ElementTree.Element.getchildren() has been removed, causing an error in line 690 of core.py

photoset = rsp.getchildren()[0]

https://docs.python.org/2/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.getchildren

tedd4u commented 3 years ago

I sent a PR to fix this … #130

randomcascade commented 3 years ago

Resolved as of #130.