The version you have is very very (many years) old.  Please repeat with a newer version such as github.com/s3tools/s3cmd master branch and report success/failure.


On Wed, Mar 5, 2014 at 7:10 AM, Florian Anderiasch <florian.anderiasch@wywy.com> wrote:
Hi,
this occurred when I used a bucket name with a typo on CentOS 5.8:

# s3cmd du s3://mybucket

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

Problem: AttributeErr: S3Error instance has no attribute 'Code'
S3cmd:   0.9.9.91

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 1736, in ?
    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 instance has no attribute 'Code'

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

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk