I gotta say this exceeds my coding skills.  Weird that str() would blow up like that. 
Thanks,
Brendan

02.02.2014 17:24 пользователь "Matt Domsch" <matt@domsch.com> написал:
Yes.  I see now that the %s in the output() strings is calling str() on the unicode string, which is then blowing up.  I suspect we need to go through and convert most cases of %s to %r instead, or else call .encode('utf-8') on them before passing them to the %s.  Not being a python unicode expert, I'm not sure on the best course of action.  But this is such a common failure mode that it does really need to get addressed somehow.


On Sun, Feb 2, 2014 at 3:45 PM, Brendan McCaughey <bem9q@yahoo.com> wrote:
I believe it was because a file name had weird characters in it - in this case, the "Registered Trademark" symbol and another unrecognized character like a capital A with a weird mark over it.  I deleted those characters from the file name manually in amazon AWS management console, and it worked after that.
Regards


On Sun, Feb 2, 2014 at 4:18 PM, Brendan McCaughey <bem9q@yahoo.com> wrote:
I received this error output when doing a dry run for syncing from S3 to local in Ubuntu:

download: s3://HomeOffice-bucket-029f000c/HomeOffice/Investments/Old and Closed/2010 KimCo Realty/.organizer/ -> /home/user1/TC_Docs_Windir/HomeOffice/Investments/Old and Closed/2010 KimCo Realty/.organizer/

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please report the following lines to:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Problem: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 132: ordinal not in range(128)
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 1070, in cmd_sync
    return cmd_sync_remote2local(args)
  File "/usr/bin/s3cmd", line 829, in cmd_sync_remote2local
    output(u"download: %s -> %s" % (remote_list[key]['object_uri_str'], remote_list[key]['local_filename']))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 132: ordinal not in range(128)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
    Please report the above lines to:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
user1@hpdm1z-ub:~/TC_Docs_Windir$ ^C
user1@hpdm1z-ub:~/TC_Docs_Windir$ 



------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk