Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml.etree.cElementTree removed from Python 3.9 #2002

Closed
freddrake opened this issue Mar 25, 2020 · 5 comments · Fixed by #2015
Closed

xml.etree.cElementTree removed from Python 3.9 #2002

freddrake opened this issue Mar 25, 2020 · 5 comments · Fixed by #2015
Assignees
Labels
enhancement This issue requests an improvement to a current feature.

Comments

@freddrake
Copy link

With newer versions of Python, xml.etree.ElementTree should be used directly.

@swetashre swetashre self-assigned this Mar 25, 2020
@swetashre
Copy link
Contributor

swetashre commented Mar 27, 2020

@freddrake - Thank you for your post. Python 3.9 won’t get offically released till October: https://www.python.org/dev/peps/pep-0596/#schedule. But we will need to update the botocore code to not use that interface before that happens. Marking this as enhancement.

@swetashre swetashre added feature-request This issue requests a feature. enhancement This issue requests an improvement to a current feature. and removed feature-request This issue requests a feature. labels Mar 27, 2020
@freddrake
Copy link
Author

Right. For people trying to make sure their applications are prepared, it's important that dependencies are compatible. It's not urgent, because there's still plenty of time in the schedule, but the sooner dependencies are ready, the better it is for everyone.

For the record, finding this issue also triggered a couple of (small-ish) bugs reported against Python:

@limburgher
Copy link

Hitting this in Fedora's 3.9 prep as well: https://bugzilla.redhat.com/show_bug.cgi?id=1818594

@StevenMapes
Copy link

StevenMapes commented Apr 8, 2020

@swetashre All you need to do, for now, is and it should keep working in Python 3.9

try:
    import xml.etree.cElementTree
except ImportError:
    import xml.etree.ElementTree as cElementTree

@caje731
Copy link
Contributor

caje731 commented Apr 23, 2020

I've run my change-set in the linked PR against
Python 3.9.0a5+ (heads/master:a25a04fea5, Apr 20 2020, 22:35:10)
and all good!

-------------------------------------------------------------------------------
TOTAL                                                       10653    448    96%
----------------------------------------------------------------------
Ran 6977 tests in 466.608s

OK
___________________________________summary_____________________________________
  py39: commands succeeded
  congratulations :)

beniwohli added a commit to beniwohli/apm-agent-python that referenced this issue Jun 18, 2020
beniwohli added a commit to beniwohli/apm-agent-python that referenced this issue Jun 18, 2020
beniwohli added a commit to beniwohli/apm-agent-python that referenced this issue Jun 18, 2020
kshpytsya added a commit to kshpytsya/with-cloud-blob that referenced this issue Jul 8, 2020
Bump supported python version to 3.8.
(Python 3.9 is not yet tested due to
boto/botocore#2002)

Bump dependencies versions to latest.

Fix "coverage" invocation.
gundalow added a commit to ansible-collections/community.aws that referenced this issue Jan 20, 2021
tremble pushed a commit to ansible-collections/community.aws that referenced this issue Jan 20, 2021
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this issue Jul 19, 2021
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this issue Jul 19, 2021
danielcotton pushed a commit to danielcotton/community.aws that referenced this issue Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue requests an improvement to a current feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants