如何避免在Windows AWS CLI S3中出现警告消息



当S3上传到下面时,我们收到了警告消息。这一点也不有害,但如果可能的话,我们希望能进行surpress。

--警告信息

C:Program FilesAmazonAWSCLI.dateutilparser_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 FilesAmazonAWSCLI.dateutilparser_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/

|find/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

如果你知道任何解决方案,请告诉我。

提前谢谢。

在这种情况下,您可以在powershell 中设置变量

Set-Item env:tz -Value your-timezone 

示例

Set-Item env:tz -Value UTC+1

相关内容

  • 没有找到相关文章

最新更新