akshaychawla / ImageNet-downloader

A simple way to browse ImageNet classes and download some images from it.
30 stars 7 forks source link

Charmap code can't decode byte #4

Open varshini-prakash opened 5 years ago

varshini-prakash commented 5 years ago

Traceback (most recent call last): File "download_images.py", line 18, in urls = f.readlines() File "C:\Users\Mahathi\AppData\Local\Programs\Python\Python37-32\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 3779: character maps to

akshaychawla commented 5 years ago

Hi @terminator-007

I think this is happening because you might be using Python3 instead of Python2. Can you check if it works with Python 3 ?

I'll try to make my code py2/py3 compliant in the meantime :smiley: