From: Jonathan M. <jon...@in...> - 2010-12-13 01:44:09
|
Hi There, Having some trouble using s3cmd to sync data down from S3. When syncing the following file down: Tonight-Alive----Five-Years_cd-cover.jpg The following error gets thrown: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! An unexpected error has occurred. Please report the following lines to: s3t...@li... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Problem: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 45: ordinal not in range(128) S3cmd: 1.0.0-rc1 Traceback (most recent call last): File "/usr/bin/s3cmd", line 1899, in <module> main() File "/usr/bin/s3cmd", line 1843, in main cmd_func(args) File "/usr/bin/s3cmd", line 1120, in cmd_sync return cmd_sync_remote2local(args) File "/usr/bin/s3cmd", line 873, 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 0xe2 in position 45: ordinal not in range(128) I have checked and there are certainly unusual characters in the name of the file. Specifically the shorter dashes "---". I have tried specifying the encoding using "--encoding=UTF-8" however this has not helped. Don't mind having these characters being stripped when downloaded (broken backup, but still have the files). However it's not an option to rename the files on s3 (database entries in application linking to those filenames). Any idea's how to sync the files down from s3, or to skip them instead of throwing an exception ? |