s3cmd
s3cmd copied to clipboard
NameError: global name 'formatDateTime' is not defined
Invoked as: /usr/bin/s3cmd ls Problem: NameError: global name 'formatDateTime' is not defined S3cmd: 2.2.0 python: 2.6.6 (r266:84292, May 1 2012, 13:52:17) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] environment LANG=zh_CN.GB18030
Traceback (most recent call last):
File "/usr/bin/s3cmd", line 3121, in
Hi, this error does not make sense to me, but you are using a very very old version of python that is unsupported (2.6). Can you update to python 2.7 at least? Otherwise, you could try to complete uninstall and reinstall s3cmd, or try to install the master version here.
Closing as no update, please don't hesitate to reopen if you are still encountering the issue and can get more details.