HumanCompatibleAI / overcooked_ai

A benchmark environment for fully cooperative human-AI performance.
https://arxiv.org/abs/1910.05789
MIT License
707 stars 148 forks source link

encoding fix #92

Closed alexlichtenstein closed 2 years ago

alexlichtenstein commented 2 years ago

fix for the issue - https://github.com/HumanCompatibleAI/overcooked_ai/issues/90

codecov[bot] commented 2 years ago

Codecov Report

Merging #92 (9e36734) into master (89e7b26) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #92   +/-   ##
=======================================
  Coverage   81.99%   81.99%           
=======================================
  Files          16       16           
  Lines        3637     3637           
=======================================
  Hits         2982     2982           
  Misses        655      655           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 89e7b26...9e36734. Read the comment docs.

micahcarroll commented 2 years ago

As extra context for the issue:

The error arises because Python 3 opens files with a default encoding that doesn't match the contents, cp1252 vs utf8.

with open("README.md", "r", encoding='UTF8') as fh:
  long_description = fh.read()