From 9e85f81dfa702f2a7c14678d496e809df0fd919c Mon Sep 17 00:00:00 2001 From: mhubig Date: Fri, 14 Aug 2015 12:54:57 +0000 Subject: --- ..._archiving_files_with_git-annex_to_glacier.mdwn | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 doc/bugs/UnicodeDecodeError_while_archiving_files_with_git-annex_to_glacier.mdwn diff --git a/doc/bugs/UnicodeDecodeError_while_archiving_files_with_git-annex_to_glacier.mdwn b/doc/bugs/UnicodeDecodeError_while_archiving_files_with_git-annex_to_glacier.mdwn new file mode 100644 index 000000000..b7e8754f7 --- /dev/null +++ b/doc/bugs/UnicodeDecodeError_while_archiving_files_with_git-annex_to_glacier.mdwn @@ -0,0 +1,43 @@ +I'll just started using git-annex and now I'm trying archiving to glacier. Unfortunately if I put a simple 2mb pdf with the name 'test.txt' into the archive folder, I get the following error: + +[[!format sh """ +Traceback (most recent call last): + File "/usr/local/bin/glacier", line 9, in + load_entry_point('glacier-cli==0.1.0', 'console_scripts', 'glacier-cli')() + File "build/bdist.macosx-10.11-x86_64/egg/glacier.py", line 732, in entry_point + File "build/bdist.macosx-10.11-x86_64/egg/glacier.py", line 718, in main + File "build/bdist.macosx-10.11-x86_64/egg/glacier.py", line 500, in archive_upload + File "/Users/markus/.virtualenvs/glacier-cli/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/glacier/vault.py", line 178, in create_archive_from_file + writer.close() + File "/Users/markus/.virtualenvs/glacier-cli/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/glacier/writer.py", line 228, in close + self.partitioner.flush() + File "/Users/markus/.virtualenvs/glacier-cli/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/glacier/writer.py", line 79, in flush + self._send_part() + File "/Users/markus/.virtualenvs/glacier-cli/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/glacier/writer.py", line 75, in _send_part + self.send_fn(part) + File "/Users/markus/.virtualenvs/glacier-cli/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/glacier/writer.py", line 222, in _upload_part + self.uploader.upload_part(self.next_part_index, part_data) + File "/Users/markus/.virtualenvs/glacier-cli/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/glacier/writer.py", line 129, in upload_part + content_range, part_data) + File "/Users/markus/.virtualenvs/glacier-cli/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/glacier/layer1.py", line 1279, in upload_part + response_headers=response_headers) + File "/Users/markus/.virtualenvs/glacier-cli/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/glacier/layer1.py", line 114, in make_request + data=data) + File "/Users/markus/.virtualenvs/glacier-cli/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/connection.py", line 1071, in make_request + retry_handler=retry_handler) + File "/Users/markus/.virtualenvs/glacier-cli/lib/python2.7/site-packages/boto-2.38.0-py2.7.egg/boto/connection.py", line 943, in _mexe + request.body, request.headers) + File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in request + self._send_request(method, url, body, headers) + File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1093, in _send_request + self.endheaders(body) + File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1049, in endheaders + self._send_output(message_body) + File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 891, in _send_output + msg += message_body +UnicodeDecodeError: 'ascii' codec can't decode byte 0x8c in position 0: ordinal not in range(128) +"""]] + +I also filled a bugreport here: https://github.com/basak/glacier-cli/issues/61 + +I'm using git-annex from homebrew and the most recent version of glacier-cli. -- cgit v1.2.3