Keyword-Extracter icon indicating copy to clipboard operation
Keyword-Extracter copied to clipboard

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

Open Robin-Andrews opened this issue 5 years ago • 0 comments

Traceback (most recent call last): File "keyword_extract_with_weight.py", line 31, in keywords = re.findall(r'[a-zA-Z]\w+',text) File "C:\Program Files (x86)\Python38-32\lib\re.py", line 239, in findall return _compile(pattern, flags).findall(string) TypeError: cannot use a string pattern on a bytes-like object

Robin-Andrews avatar Jun 17 '20 07:06 Robin-Andrews