Skip to content

Instantly share code, notes, and snippets.

@bculberson
Created March 14, 2013 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bculberson/96b73e546cd10f9a8ea7 to your computer and use it in GitHub Desktop.
Save bculberson/96b73e546cd10f9a8ea7 to your computer and use it in GitHub Desktop.
Bug getting file list from bucket
[brad.culberson@Brads-MacBook-Pro-2 s3cmd-1.5.0-alpha1]$ s3cmd ls s3://geocache.mapmyfitness.com
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the following lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Problem: ParseError: reference to invalid character number: line 2, column 239
S3cmd: 1.5.0-alpha1
Traceback (most recent call last):
File "/usr/local/bin/s3cmd", line 2037, in <module>
main()
File "/usr/local/bin/s3cmd", line 1978, in main
cmd_func(args)
File "/usr/local/bin/s3cmd", line 104, in cmd_ls
subcmd_bucket_list(s3, uri)
File "/usr/local/bin/s3cmd", line 134, in subcmd_bucket_list
response = s3.bucket_list(bucket, prefix = prefix)
File "/Library/Python/2.7/site-packages/S3/S3.py", line 250, in bucket_list
current_list = _get_contents(response["data"])
File "/Library/Python/2.7/site-packages/S3/S3.py", line 237, in _get_contents
return getListFromXml(data, "Contents")
File "/Library/Python/2.7/site-packages/S3/Utils.py", line 82, in getListFromXml
tree = getTreeFromXml(xml)
File "/Library/Python/2.7/site-packages/S3/Utils.py", line 72, in getTreeFromXml
tree = ET.fromstring(xml)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1282, in XML
parser.feed(text)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1624, in feed
self._raiseerror(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
raise err
ParseError: reference to invalid character number: line 2, column 239
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the above lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment