You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "analyze_papers.py", line 233, in
titles_dict = read_titles(args.zotero_csv)
File "analyze_papers.py", line 77, in read_titles
for r in reader:
File "C:\Python38\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 1593: character maps to
The text was updated successfully, but these errors were encountered:
I solved this problem by manually setting the encoding for the open() function used when reading the titles from the Zotero CSV. Specifically, in the read_titles() function, update line 74 to the following (using whatever encoding your CSV uses):
with open(zotero_csv, 'rt', encoding='utf8') as csvfile:
Hello,
I tried to run the script with Python 3.8.1. But, I got this error. How could I solve it?
C:\citation map>python analyze_papers.py Library.csv
Traceback (most recent call last):
File "analyze_papers.py", line 233, in
titles_dict = read_titles(args.zotero_csv)
File "analyze_papers.py", line 77, in read_titles
for r in reader:
File "C:\Python38\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 1593: character maps to
The text was updated successfully, but these errors were encountered: