Skip to content

Error while running the news-aggregator.py #1

@sharm106MSU

Description

@sharm106MSU

Can you please suggest why I am getting below mentioned error?
TypeError Traceback (most recent call last)
in
26 words_file = "tools/your_features.txt"
27 target_file = "tools/your_labels.txt"
---> 28 features = pickle.load(open(words_file, 'r'))
29
30 labels = pickle.load(open(target_file, 'r'))

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