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

TypeError: cannot use a string pattern on a bytes-like object #2

Open
Pascal666 opened this issue Apr 26, 2021 · 1 comment
Open

TypeError: cannot use a string pattern on a bytes-like object #2

Pascal666 opened this issue Apr 26, 2021 · 1 comment

Comments

@Pascal666
Copy link

pvshrink yields the below error when run under Python 3.8:
Traceback (most recent call last):
File "./pvshrink", line 118, in
match = re.search(r'Found text metadata area: offset=(\d+), size=(\d+)', pvck)
File "/usr/lib64/python3.8/re.py", line 201, in search
return _compile(pattern, flags).search(string)
TypeError: cannot use a string pattern on a bytes-like object

@ekuester
Copy link

This error is the same as in issue #1 and can be solved similarly. For further information look for instance under StackOverflow or this tutorial

Fortunately the error occurred after defragmentation, so in my case I could solve the resizing manually and do not want to repeat the operation on my harddisk (for further testing of code).

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