minerllabs / minerl

MineRL Competition for Sample Efficient Reinforcement Learning - Python Package
http://minerl.io/docs/
Other
709 stars 153 forks source link

UnicodeDecodeError: 'charmap' codec can't decode byte #780

Closed HamedDi81 closed 3 months ago

HamedDi81 commented 3 months ago

I think the original code has some problems running on Windows because it doesn't specify encoding in the following lines.

with open("README.md", "r") as fh:
    markdown = fh.read()
with open("requirements.txt", "r") as fh:
    requirements = fh.read()

which would cause the following error in Windows: UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 1458: character maps to <undefined> I made a change to fix it, and everything went well.