mortada / fredapi

Python API for FRED (Federal Reserve Economic Data) and ALFRED (Archival FRED)
Apache License 2.0
902 stars 159 forks source link

'xml.etree.ElementTree.Element' object has no attribute 'getchildren' #68

Closed ulnn closed 9 months ago

ulnn commented 9 months ago

When downloading data with Python 3.12, the data fetching results in an error. It looks like that FredAPI is using getchildren() method, which is no longer supported by Python >3.9. This method was used in the xml.etree.ElementTree library but has been deprecated.

This has been raised previously by other users e.g. in https://community.anaconda.cloud/t/fredapi-error-using-get-series-method-from-fredapi-package/51231previously