I believe this is fixed in upstream github.com/s3tools/s3cmd master branch.


On Thu, Sep 12, 2013 at 6:08 AM, ankit Khandelwal <ankit.k@myntra.com> wrote:

WARNING: python-magic is not available, guessing MIME types based on file extensions only

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

Problem: KeyErr: 'size'
S3cmd:   1.1.0-beta2

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 1804, in ?
    main()
  File "/usr/bin/s3cmd", line 1745, in main
    cmd_func(args)
  File "/usr/bin/s3cmd", line 308, in cmd_object_put
    output(u"File '%s' stored as '%s' (%d bytes in %0.1f seconds, %0.2f %sB/s) %s" %
KeyError: 'size'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
    Please report the above lines to:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: python-magic is not available, guessing MIME types based on file extensions only

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

Problem: KeyErr: 'size'
S3cmd:   1.1.0-beta2

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 1804, in ?
    main()
  File "/usr/bin/s3cmd", line 1745, in main
    cmd_func(args)
  File "/usr/bin/s3cmd", line 308, in cmd_object_put
    output(u"File '%s' stored as '%s' (%d bytes in %0.1f seconds, %0.2f %sB/s) %s" %
KeyError: 'size'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
    Please report the above lines to:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: python-magic is not available, guessing MIME types based on file extensions only

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



------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk