下面的S3上传时,我们收到警告消息。完全没有害处,但如果可能的话,我们希望压制。
-警告消息
C:\Program Files\Amazon\AWSCLI\.\dateutil\parser\_parser.py:1175: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
-实际情况
c:\temp>aws s3 ls s3://s3-dwh-XXXXX/s3-dwh-backup-exp/
C:\Program Files\Amazon\AWSCLI\.\dateutil\parser\_parser.py:1175: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
2018-11-01 10:10:49 0
2018-11-01 10:06:53 132872957 DL_CustMstNEW_01.gz
2018-11-01 10:06:58 41152747 DL_CustMstNEW_02.gz
2018-11-01 10:07:04 43736036 DL_CustMstNEW_03.gz
2018-11-01 10:07:07 42409294 DL_CustMstNEW_04.gz
2018-11-01 10:07:11 39195854 DL_CustMstNEW_05.gz
2018-11-01 10:07:15 37022918 DL_CustMstNEW_06.gz
2018-11-01 10:07:19 40475266 DL_CustMstNEW_07.gz
2018-11-01 10:07:23 40827113 DL_CustMstNEW_08.gz
2018-11-01 10:07:27 40064518 DL_CustMstNEW_09.gz
2018-11-01 10:07:31 40103445 DL_CustMstNEW_10.gz
2018-11-01 10:07:36 38343333 DL_CustMstNEW_11.gz
2018-11-01 10:07:40 38345654 DL_CustMstNEW_12.gz
c:\temp>aws s3 ls s3://s3-dwh-XXXXX/s3-dwh-backup-exp/
|找到/ c / v“” C:\ Program Files \ Amazon \ AWSCLI。\ dateutil \ parser_parser.py:1175:Unicode警告:Unicode相等比较无法将两个参数都转换为Unicode-将它们解释为不相等 13
也许我们有任何编码或模块问题,这是我们的AWS CLI版本。
c:\temp>aws --version
aws-cli/1.16.10 Python/2.7.9 Windows/2012Server botocore/1.12.0
如果您知道任何解决方案,请告诉我。
谢谢。
答案 0 :(得分:1)
在这种情况下,您可以在powershell中设置变量
Set-Item env:tz -Value your-timezone
例如
Set-Item env:tz -Value UTC+1