question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Hi 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
drewsaunderscommented, Dec 17, 2021

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

0reactions
mortadacommented, Apr 9, 2021

interesting, I actually only upload to pip, not sure how it got uploaded to conda-forge

https://anaconda.org/conda-forge/fredapi

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found