|
From: Светлана Д. <14...@ma...> - 2023-12-05 16:20:21
|
Hi. I have problem with connection. can you help me please. what should I fix with this error: TypeError: sequence item 1: expected str instance, bytes found !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 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-(FAQ) If the error persists, please report the following lines (removing any private info as necessary) to: s3t...@li... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Invoked as: /opt/homebrew/bin/s3cmd ls Problem: <class 'TypeError: sequence item 1: expected str instance, bytes found S3cmd: 2.3.0 python: 3.12.0 (main, Oct 5 2023, 15:43:35) [Clang 14.0.0 (clang-1400.0.29.202)] environment LANG=NOTSET Traceback (most recent call last): File "/opt/homebrew/bin/s3cmd", line 3286, in <module> rc = main() ^^^^^^ File "/opt/homebrew/bin/s3cmd", line 3183, in main rc = cmd_func(args) ^^^^^^^^^^^^^^ File "/opt/homebrew/bin/s3cmd", line 171, in cmd_ls subcmd_all_buckets_list(s3) File "/opt/homebrew/bin/s3cmd", line 176, in subcmd_all_buckets_list response = s3.list_all_buckets() ^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.12/site-packages/S3/S3.py", line 327, in list_all_buckets response["list"] = getListFromXml(response["data"], "Bucket") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.12/site-packages/S3/BaseUtils.py", line 277, in getListFromXml tree = getTreeFromXml(xml) ^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.12/site-packages/S3/BaseUtils.py", line 263, in getTreeFromXml xml, xmlns = stripNameSpace(encode_to_s3(xml)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.12/site-packages/S3/BaseUtils.py", line 255, in stripNameSpace xml = RE_XML_NAMESPACE.sub("\\1\\2", xml, 1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: sequence item 1: expected str instance, bytes found !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 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-(FAQ) If the error persists, please report the above lines (removing any private info as necessary) to: s3t...@li... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Kind regards, Lana |