Fixed in upstream github.com/s3tools/s3cmd master branch, and somewhat newer bug fix testing branch github.com/mdomsch/s3cmd 'merge' branch.


On Thu, Nov 28, 2013 at 7:26 AM, Jordi Amorós <jordi@greenqloud.com> wrote:

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


Problem: UnboundLocalError: local variable 'content_encoding' referenced before assignment

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 321, in cmd_object_put

    response = s3.object_put(full_name, uri_final, extra_headers, extra_label = seq_label)

  File "/Library/Python/2.7/site-packages/S3/S3.py", line 420, in object_put

    if not content_encoding:

UnboundLocalError: local variable 'content_encoding' referenced before assignment


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


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk