Traceback (most recent call last):
File "./ds3cp", line 164, in <module>
UploadInBulk(uploadList)
File "./ds3cp", line 110, in UploadInBulk
job=bulkResult.result['JobId']))
File "/usr/lib/python2.7/site-packages/ds3/ds3.py", line 11319, in put_object
return PutObjectResponse(self.net_client.get_response(request), request)
File "/usr/lib/python2.7/site-packages/ds3/ds3network.py", line 168, in get_response
response = self.send_request(request)
File "/usr/lib/python2.7/site-packages/ds3/ds3network.py", line 192, in send_request
path = self.build_path(request.path, request.query_params)
File "/usr/lib/python2.7/site-packages/ds3/ds3network.py", line 295, in build_path
new_path = self.normalize_string(resource) + '?'
File "/usr/lib/python2.7/site-packages/ds3/ds3network.py", line 290, in normalize_string
return urllib.quote(url)
File "/usr/lib64/python2.7/urllib.py", line 1283, in quote
return ''.join(map(quoter, s))
KeyError: u'\xa0'
My keys include file pathnames that sometimes contain unicode. I'm guessing that this problem has to do with the unicode <-> utf-8 ambiguities in python 2.
I am considering rewriting the script w/ the Python 3 SDK, but I first wanted to see if anyone else had encountered this error using the python 2.7 toolkit, and how they dealt with it.
Thanks,
Mark