karpathy / arxiv-sanity-preserver

Web interface for browsing, search and filtering recent arxiv submissions
http://www.arxiv-sanity.com/
MIT License
5.11k stars 1.32k forks source link

Issue installing on my local machine #74

Open zenr opened 7 years ago

zenr commented 7 years ago

Hi

I would like to add an RSS feed to the most recent papers tab. I was trying to setup on my local machine based on the instruction in the README. It failed when I ran analyze.py

C:\Users\<user>\Desktop\arxiv-sanity-preserver>python analyze.py
Traceback (most recent call last):
  File "analyze.py", line 29, in <module>
    txt = f.read()
  File "C:\Users\<user>\AppData\Local\Continuum\Anaconda3\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 0x9d in position 2705: cha
racter maps to <undefined>

Any idea how to fix it?

Ravi

JLee21 commented 7 years ago

There's a decoding error. So perhaps the default f.read() encoding does not work here. Perhaps try another decoding: https://docs.python.org/3/library/codecs.html#standard-encodings Or figure out what the byte is: 0x9d