I installed s3cmd on a relatively clean Ubuntu 8.10 server (slicehost image). As far as I can remember the install went cleanly and it worked straight away after that. However, when I logged out of the system and logged back in some days later, running 's3cmd ls' gave the following error:
Problem: Error: unsupported locale setting
Python: 2.5.2 (r252:60911, Oct 5 2008, 19:29:17) [GCC 4.3.2]
Traceback (most recent call last):
File "/usr/bin/s3cmd", line 1562, in <module>
File "/usr/bin/s3cmd", line 1336, in main
preferred_encoding = locale.getpreferredencoding() or "UTF-8"
File "/usr/lib/python2.5/locale.py", line 514, in getpreferredencoding
File "/usr/lib/python2.5/locale.py", line 478, in setlocale
return _setlocale(category, locale)
Error: unsupported locale setting
I expect there's something wrong with my environment, which I'm happy to debug for myself (I'm suspicious that when I added a new user to the system I maybe didn't get all the environment set correctly?). However, this seems like a common enough use case and could use having a more descriptive error message or, if possible, an internal default that would let it get by with a warning rather than bombing out.