Error in Flatland environment installation

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\\'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-tswk58lv\\flatland-rl\\'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);'"'"'\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\", line 12, in <module>
    readme =
  File "c:\users\user\anaconda2\envs\ai\lib\encodings\", 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 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!


1 Like

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

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