Error in Flatland environment installation

Hello,
I came across an error while trying to install the flatland-rl environment with conda.

Here is the stack trace:

 C:\Users\user>pip install flatland-rl --no-cache-dir
 Collecting flatland-rl
 Downloading flatland-rl-2.2.0.tar.gz (2.5 MB)
 |████████████████████████████████| 2.5 MB 59 kB/s
ERROR: Command errored out with exit status 1:
 command: 'c:\users\user\anaconda2\envs\ai\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-tswk58lv\\flatland-rl\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-tswk58lv\\flatland-rl\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-ukc9snll'
     cwd: C:\Users\user\AppData\Local\Temp\pip-install-tswk58lv\flatland-rl\
Complete output (7 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\user\AppData\Local\Temp\pip-install-tswk58lv\flatland-rl\setup.py", line 12, in <module>
    readme = readme_file.read()
  File "c:\users\user\anaconda2\envs\ai\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 0x8f in position 751: character maps to <undefined>
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

There must be something broken with my conda environment. Any suggestions on how to fix it will be very helpful.

Thank you.

Hello @rafid_abyaad, we are aware of this and a fix is on the way!

Cheers

1 Like

As a quick-fix, try changing line 11 of setup.py to:

with open('README.md', 'r', encoding='utf8') as readme_file: