In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to solve the S3cmd signurl Chinese support problem". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the S3cmd signurl Chinese support problem.
S3cmd signurl Chinese support question s3cmd-- versions3cmd version 1.6.1s3cmd signurl s3://s3demo/ceph knowledge tree. Png + 200 years! An unexpected error has occurred. Please try reproducing the error using the latest s3cmd code from the git master branch found at: https://github.com/s3tools/s3cmd and have a look at the known issues list: https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions If the error persists, please report the following lines (removing any private info as necessary) to: s3tools-bugs@lists.sourceforge.netYou have encountered a UnicodeEncodeError. Your environmentvariable LANG=zh_CN.UTF-8 may not specify a Unicode encoding (e.g. UTF-8). Please set LANG=en_US.UTF-8 or similar in your environment beforeinvoking s3cmd.disabled invoked as: / usr/local/bin/s3cmd signurl s3://hxs1-s3soft/ceph knowledge tree. Png + 200Problem: UnicodeEncodeError: 'ascii' codec can 't encode characters in position 31-33: ordinal not in range (128) S3cmd: 1.6.1python: 2.7.10 (default Oct 23 2015, 19:19:21) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] environment LANG=zh_CN.UTF-8Traceback (most recent call last): File "/ usr/local/bin/s3cmd", line 2923, in rc = main () File "/ usr/local/bin/s3cmd", line 2843, in main rc = cmd_func (args) File "/ usr/local/bin/s3cmd", line 2017 In cmd_signurl debug ("url to sign:% r"% url_to_sign) UnicodeEncodeError: 'ascii' codec can't encode characters in position 31-33: ordinal not in range! An unexpected error has occurred. Please try reproducing the error using the latest s3cmd code from the git master branch found at: https://github.com/s3tools/s3cmd and have a look at the known issues list: https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions If the error persists Please report the above lines (removing any private info as necessary) to: s3toolsmurf bugsmakers lists.sourceforge.netweights!
Add the following two lines to the s3cmd source file to solve the problem
Reload (sys) sys.setdefaultencoding ('utf-8')
Final effect of patch
2894 if _ _ name__ ='_ _ main__':2895 try:2896 # # Our modules2897 # # Keep them in try/except block to2898 # # detect any syntax errors in there2899 reload (sys) # add 2900 sys.setdefaultencoding ('utf-8') # add 2901 from S3.ExitCodes import * 2902 from S3.Exceptions import * here I believe you have a better understanding of "how to solve the S3cmd signurl Chinese support problem". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.