-
-
Notifications
You must be signed in to change notification settings - Fork 907
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
fix compatibility with Python 3.9 #1137
Conversation
Hi, |
34ab164
to
a9320bb
Compare
I force-pushed a fix - I incorporated your suggestion and I also used |
Thank you for you read reactivity! |
getchildren() method was removed from the ElementTree and Element classes in Python 3.9. See the release notes: https://docs.python.org/3.9/whatsnew/3.9.html#removed
a9320bb
to
328ced8
Compare
Sure thing, done! |
Merged thanks! |
s3cmd from pip doesn't work with Python 3.9. Fortunately, s3cmd in Fedora has a downstream patch to fix it. See rhbz#1884607 and s3tools/s3cmd#1137
s3cmd from pip doesn't work with Python 3.9. Fortunately, s3cmd in Fedora has a downstream patch to fix it. See rhbz#1884607 and s3tools/s3cmd#1137
Could this please be released as 2.1.1? |
s3cmd does not work properly with python 3.9 (used on Fedora 33): Problem: <class 'AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' S3cmd: 2.1.0 python: 3.9.0rc1 (default, Aug 12 2020, 00:00:00) Use the one from the official repositories, which in case of F33 has a downstream fix for the error. See rhbz#1884607 and s3tools/s3cmd#1137 Patch based on osbuild-composer commit 1a69a891 by Ondřej Budai.
s3cmd does not work properly with python 3.9 (used on Fedora 33): Problem: <class 'AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' S3cmd: 2.1.0 python: 3.9.0rc1 (default, Aug 12 2020, 00:00:00) Use the one from the official repositories, which in case of F33 has a downstream fix for the error. See rhbz#1884607 and s3tools/s3cmd#1137 Patch based on osbuild-composer commit 1a69a891 by Ondřej Budai.
Closes #63174. Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
I'm running into this problem with every non-empty bucket in Linode. Can a new release be made soon? |
@KeithCu -- I had the same today which led me to pull master.zip, and if usr/bin/env python (symlink to python3) is available on the system, it can work. I agree though, A new release will be easier for more folks. |
The added patch is already merged upstream: s3tools/s3cmd#1137
getchildren()
method was removed from theElementTree
andElement
classes in Python 3.9. This PR uses built-initer()
andlist()
methods instead of the removed one. This fix was suggested in the Python 3.9 release notes:https://docs.python.org/3.9/whatsnew/3.9.html#removed
I verified this fix on Fedora 33 with Python 3.9.0rc2 by: