Skip to content

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

@Pascal666

Description

@Pascal666

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions