You might try a much newer version, such as github.com/s3tools/s3cmd master branch.  I've never seen this behavior, though I started with a later version.


On Sun, Aug 18, 2013 at 12:14 PM, Michael Bladowski <michael.bladowski@gmail.com> wrote:
hi there,

i got this error:

Problem: AttributeError: 'S3Error' object has no attribute 'Code'
S3cmd:   0.9.9.91

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 1736, in <module>
    main()
  File "/usr/bin/s3cmd", line 1681, in main
    cmd_func(args)
  File "/usr/bin/s3cmd", line 44, in cmd_du
    subcmd_bucket_usage(s3, uri)
  File "/usr/bin/s3cmd", line 70, in subcmd_bucket_usage
    if S3.codes.has_key(e.Code):
AttributeError: 'S3Error' object has no attribute 'Code'

while doing this:

s3cmd du s3://xxxxxxxxxxxxxx

my system: debian 6.0.6
uname -r: 2.6.32-5-xen-amd64

thanks for any help!

regards,
michael


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk