BioroboticsLab / IBA

Information Bottlenecks for Attribution
MIT License
74 stars 9 forks source link

Installing IBA on Win10 throws codec error #46

Open Scaramir opened 2 years ago

Scaramir commented 2 years ago

When installing the package on a windows system I get the following error:

Traceback (most recent call last):
      [...]
      File "setup.py", line 12, in <module>
        long_description=open("README.md").read(),
    [...]  
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 5249: character maps to <undefined>

So line 12 of setup.py should state the expected enconding:
long_description=open("README.md", 'r', encoding='utf8').read(),. Otherwise, Win10 expects 1252 encoding.

I simply changed that one line after cloning the repo and installed it as suggested to make it work. Hence the standard character encoding on linux is in UTF8, it should work on these systems too, even though I am not sure, if this solution is generally correct.