You have unicode filenames I presume?



On Thu, Dec 5, 2013 at 8:30 AM, Ragnar Hulskamp <ragnar.hulskamp@sentia.nl> wrote:
Hi,

I get the following error:

Invoked as: /path/to/s3cmd/s3cmd -c /home/aws/myconfig sync
s3://mybucket /backup/mybucket/Problem: UnicodeEncodeError: 'ascii'
codec can't encode character u'\xb2' in position 79: ordinal not in
range(128)
S3cmd:   1.5.0-beta1

Traceback (most recent call last):
  File "/home/aws/s3cmd/s3cmd", line 2276, in <module>
    main()
  File "/home/aws/s3cmd/s3cmd", line 2201, in main
    cmd_func(args)
  File "/home/aws/s3cmd/s3cmd", line 1290, in cmd_sync
    return cmd_sync_remote2local(args)
  File "/home/aws/s3cmd/s3cmd", line 971, in cmd_sync_remote2local
    failed_copy_list = local_copy(copy_pairs, destination_base)
  File "/home/aws/s3cmd/s3cmd", line 1003, in local_copy
    shutil.copy2(src_file, dst_file)
  File "/usr/lib64/python2.6/shutil.py", line 93, in copy2
    if os.path.isdir(dst):
  File "/usr/lib64/python2.6/genericpath.py", line 41, in isdir
    st = os.stat(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb2' in
position 79: ordinal not in range(128)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please try reproducing the error using
  the latest s3cmd code from the git master
  branch found at:
    https://github.com/s3tools/s3cmd
  If the error persists, please report the
  above lines (removing any private
  info as necessary) to:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

--
Met vriendelijke groet,
Ragnar Hulskamp

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk