Naive-Bayes-Evening-Workshop
Naive-Bayes-Evening-Workshop copied to clipboard
json.load encoding error in Anaconda3 python
Hi Dan,
When I did "python run.py", I got following error messages,
Ok let's go!
Traceback (most recent call last):
File "run.py", line 16, in
I checked the website below,
https://stackoverflow.com/questions/32927631/pytesseract-unicodedecodeerror-charmap-codec-cant-decode-byte
cp1252 is,
cp1252 | windows-1252 | Western Europe
Can you give me how to fix this?
I will try your python scripts on a different machine to work around this issue.
Thanks - Jaegun
I guess Windows uses backslash instead of forward slash. So try to replace the code at line number 11 of run.py with:
datasource_info = [('newyorktimes', 'data\nyt_discussions.json'), ('motherjones', 'data\motherjones_discussions.json'), ('breitbart', 'data\breitbart_discussions.json')]