'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
See original GitHub issueHi All,
I am attempting to retrieve data in the following manner:
from fredapi import Fred
fred = Fred(api_key = 'MyAPIKey')
data = fred.get_series('SP500')
But doing so results in the error:
'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
Is this due to a missing dependency and is there a workaround available?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
xml.etree.ElementTree.Element' object has no attribute ...
ElementTree.Element used to have a method called getchildren(), so you'll see existing code that uses it. It was deprecated in version version ......
Read more >Py 3.9 failures: 'xml.etree.ElementTree.Element' object has no ...
Successfully merging a pull request may close this issue. Remove call to deprecated Element.getchildren. QuLogic/OCRmyPDF. 3 participants.
Read more >"AttributeError: 'xml.etree.ElementTree.Element' object has no ...
"AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'" on Subversion working copy.
Read more >T213814 xml.etree.ElementTree.Element.getchildren() has ...
xml.etree.ElementTree.Element.getchildren() and getiterator() is deprecated since python 2.7 and 3.2 and has been removed in python 3.9.
Read more >1884607 – s3cmd crashes with AttributeError: 'xml.etree ...
Bug 1884607 - s3cmd crashes with AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have an Anaconda installation, as well. I installed with conda (which only gets 0.4.2), then upgraded with pip: pip install --upgrade fredapi This gets 0.4.3 from pypi. I am hoping this will minimize the chance of some conflicts. So far (which isn’t very), so good! Drew
interesting, I actually only upload to pip, not sure how it got uploaded to conda-forge
https://anaconda.org/conda-forge/fredapi