Skip to content

TypeError: a bytes-like object is required, not 'str' #1

@ys117vt

Description

@ys117vt

Hi there,

I found your post very interesting and would like to try it out. However, the python code for the parseDates.py showed error message as shown below. I am fairly new to Python and assume this is related to the difference between Python 2 &3. Do you know the best way to solve this? Thank you so much!

Traceback (most recent call last):
File "C:\Users\yang\Downloads\Marc Email\parseWords.py", line 3, in
from parseDates import parseDate
File "C:\Users\yang\Downloads\Marc Email\parseDates.py", line 83, in
writer.writerow(["Date", "Count"])
TypeError: a bytes-like object is required, not 'str'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions