Fixed in upstream github.com/s3tools/s3cmd master branch.


On Fri, Sep 20, 2013 at 4:30 PM, James Myers <myersjj@gmail.com> wrote:
Received this error running this command on Linux Centos:

s3cmd -rpvv --dry-run --add-header=Content-Disposition:attachment sync ridhwan_media/dweb104-prod s3://ridhwan_media


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please report the following lines to:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Problem: TypeError: string indices must be integers
S3cmd:   1.5.0-alpha1

Traceback (most recent call last):
  File "/home/dhat/bin/s3cmd", line 2037, in <module>
    main()
  File "/home/dhat/bin/s3cmd", line 1978, in main
    cmd_func(args)
  File "/home/dhat/bin/s3cmd", line 1162, in cmd_sync
    return cmd_sync_local2remote(args)
  File "/home/dhat/bin/s3cmd", line 1146, in cmd_sync_local2remote
    destination_base_uri = _single_process(local_list)
  File "/home/dhat/bin/s3cmd", line 969, in _single_process
    _child(destination_base, local_list)
  File "/home/dhat/bin/s3cmd", line 1075, in _child
    output(u"remote copy: %s -> %s" % (dst1['object_key'], remote_list[dst2]['object_key']))
TypeError: string indices must be integers

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
    Please report the above lines to:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk