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

Can't run s3cmd ls #1146

Closed
edgarjs opened this issue Oct 26, 2020 · 7 comments
Closed

Can't run s3cmd ls #1146

edgarjs opened this issue Oct 26, 2020 · 7 comments
Milestone

Comments

@edgarjs
Copy link

edgarjs commented Oct 26, 2020

I just updated to 2.1.0_1 from homebrew, and now I can't run any command. I tried doing --configure again, and then s3cmd ls but no luck. I keep getting this error message:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please try reproducing the error using
  the latest s3cmd code from the git master
  branch found at:
    https://github.com/s3tools/s3cmd
  and have a look at the known issues list:
    https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions
  If the error persists, please report the
  following lines (removing any private
  info as necessary) to:
   s3tools-bugs@lists.sourceforge.net


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Invoked as: /usr/local/bin/s3cmd ls
Problem: <class 'AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
S3cmd:   2.1.0
python:   3.9.0 (default, Oct 18 2020, 02:16:06)
[Clang 12.0.0 (clang-1200.0.32.2)]
environment LANG=en_US.UTF-8

Traceback (most recent call last):
  File "/usr/local/bin/s3cmd", line 3121, in <module>
    rc = main()
  File "/usr/local/bin/s3cmd", line 3030, in main
    rc = cmd_func(args)
  File "/usr/local/bin/s3cmd", line 156, in cmd_ls
    subcmd_all_buckets_list(s3)
  File "/usr/local/bin/s3cmd", line 161, in subcmd_all_buckets_list
    response = s3.list_all_buckets()
  File "/usr/local/Cellar/s3cmd/2.1.0_1/libexec/lib/python3.9/site-packages/S3/S3.py", line 315, in list_all_buckets
    response["list"] = getListFromXml(response["data"], "Bucket")
  File "/usr/local/Cellar/s3cmd/2.1.0_1/libexec/lib/python3.9/site-packages/S3/Utils.py", line 120, in getListFromXml
    return parseNodes(nodes)
  File "/usr/local/Cellar/s3cmd/2.1.0_1/libexec/lib/python3.9/site-packages/S3/Utils.py", line 67, in parseNodes
    for child in node.getchildren():
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please try reproducing the error using
  the latest s3cmd code from the git master
  branch found at:
    https://github.com/s3tools/s3cmd
  and have a look at the known issues list:
    https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions
  If the error persists, please report the
  above lines (removing any private
  info as necessary) to:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@st-pasha
Copy link

Also, the wiki page mentioned in the error message does not exist: https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions

@tanvir23
Copy link

tanvir23 commented Oct 27, 2020

I am also getting same error in my MBP. I am using MocOS Catalina 10.15.7, if that helps

@tirkarthi
Copy link
Contributor

Seems to have been fixed with #1137

@makemagik
Copy link

makemagik commented Oct 27, 2020

Having the same issue here. Is the new patch released yet? I need a fast workaround for this... Also using Catalina 10.15.7

@st-pasha
Copy link

st-pasha commented Oct 27, 2020

@makemagik Fast workaround is to go into the file where the error is reported and replace for child in node.getchildren() with for child in node. Then it'll throw one other error, and you'd have to replace I think if child.getchildren() with if list(child).

@makemagik
Copy link

@st-pasha you saved my life. thanks!

@fviard
Copy link
Contributor

fviard commented Oct 27, 2020

Indeed this issue is known and already fixed in MASTER.
So you can use master also.
I will release soon a new version with the fixes but a little bit more testing has still to be done to ensure that no other issue related to python 3.9.

jbojar referenced this issue in Homebrew/homebrew-core Oct 30, 2020
Closes #63174.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
@fviard fviard added this to the 2.2.0 milestone Nov 2, 2020
@fviard fviard closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants