Problem: ExpatErr: reference to invalid character number: line 2, column 310564
S3cmd:   0.9.9-rc3
Python:  2.4.4 (#1, Oct 23 2006, 13:58:00)  [GCC 4.1.1 20061011 (Red Hat 4.1.1-30)]

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 1541, in ?
    main()
  File "/usr/bin/s3cmd", line 1518, in main
    cmd_func(args)
  File "/usr/bin/s3cmd", line 1008, in cmd_sync
    return cmd_sync_local2remote(args)
  File "/usr/bin/s3cmd", line 910, in cmd_sync_local2remote
    remote_list = fetch_remote_list(destination_base, recursive = True, require_attribs = True)
  File "/usr/bin/s3cmd", line 224, in fetch_remote_list
    objectlist = _get_filelist_remote(uri)
  File "/usr/bin/s3cmd", line 614, in _get_filelist_remote
    response = s3.bucket_list(remote_uri.bucket(), prefix = remote_uri.object(), recursive = recursive)
  File "/usr/local/bin/S3/S3.py", line 140, in bucket_list
  File "/usr/local/bin/S3/S3.py", line 120, in _get_contents
  File "/usr/local/bin/S3/Utils.py", line 63, in getListFromXml
  File "/usr/local/bin/S3/Utils.py", line 57, in getTreeFromXml
  File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py", line 960, in XML
    parser.feed(text)
  File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py", line 1242, in feed
    self._parser.Parse(data, 0)
ExpatError: reference to invalid character number: line 2, column 310564

--
Ravneet Grewal
Google Talk:ravneetg at gmail.com