Skip to content

Error while running the news-aggregator.py #1

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

Open
sharm106MSU opened this issue Dec 7, 2019 · 0 comments
Open

Error while running the news-aggregator.py #1

sharm106MSU opened this issue Dec 7, 2019 · 0 comments

Comments

@sharm106MSU
Copy link

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'

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

1 participant