Arg0s1080 / mrz

Machine Readable Zone generator and checker for official travel documents sizes 1, 2, 3, MRVA and MRVB (Passports, Visas, national id cards and other travel documents)
GNU General Public License v3.0
328 stars 122 forks source link

Update setup.py #18

Closed ultrafunkamsterdam closed 4 years ago

ultrafunkamsterdam commented 4 years ago

This small addition fixes the following problem

After trying installing using pip install git+https://github.com/Arg0s1080/mrz

# only relevant part of traceback

 long_description = readme.read()
      File "c:\program files\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 1545: character maps to <undefined>
Arg0s1080 commented 4 years ago

Hi!

I use Linux as the usual platform. Honestly i have never used setup.py on windows.

I promise to check it as soon as i can.

Regards and thank you very much

Arg0s1080 commented 4 years ago

I'm sorry. I have very little free time now. After testing your changes on Windows and Linux using:

pip3 install git+https://github.com/Arg0s1080/mrz

I have only verified that it does not give errors, so it is approved. However, I still don't understand where the error is. I'd also like to try using encoding="utf8" kwarg instead errors="ignore".

Out of curiosity what encoding do you use when that error occurs?

Thanks a lot