Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixbucket command is broken #1259

Closed
LadMartin opened this issue Jun 20, 2022 · 1 comment
Closed

Fixbucket command is broken #1259

LadMartin opened this issue Jun 20, 2022 · 1 comment
Milestone

Comments

@LadMartin
Copy link

Recently I tried to use fixbucket on AWS to see what it does.
This is what I start with

$ s3cmd ls s3://mlad-test
2022-06-17 10:30            0  s3://mlad-test/foo

This is what I called

$ s3cmd fixbucket s3://mlad-test/

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    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:
   s3tools-bugs@lists.sourceforge.net

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Invoked as: /usr/local/bin/s3cmd --no-ssl fixbucket s3://mlad-test/
Problem: <class 'TypeError: cannot use a string pattern on a bytes-like object
S3cmd:   2.2.0
python:   3.6.15 (default, Nov 30 2021, 03:55:20) 
[GCC 10.3.1 20211027]
environment LANG=C.UTF-8

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/s3cmd-2.2.0-py3.6.egg/EGG-INFO/scripts/s3cmd", line 3209, in <module>
  File "/usr/local/lib/python3.6/site-packages/s3cmd-2.2.0-py3.6.egg/EGG-INFO/scripts/s3cmd", line 3106, in main
  File "/usr/local/lib/python3.6/site-packages/s3cmd-2.2.0-py3.6.egg/EGG-INFO/scripts/s3cmd", line 2273, in cmd_fixbucket
  File "/usr/local/lib/python3.6/re.py", line 222, in findall
    return _compile(pattern, flags).findall(string)
TypeError: cannot use a string pattern on a bytes-like object

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    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:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Can you please verify if the command does what it suppose to do?

@LadMartin LadMartin changed the title fixbucket command is broken Fixbucket command is broken Jun 20, 2022
@fviard fviard closed this as completed in d87d816 Jul 2, 2022
@fviard fviard added this to the 2.3.0 milestone Jul 2, 2022
@fviard
Copy link
Contributor

fviard commented Jul 2, 2022

Thank you very much for the report, it should now be fixed in MASTER.

fviard added a commit that referenced this issue Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants