Flatland issueshttps://gitlab.aicrowd.com/flatland/flatland/-/issues2020-06-11T20:35:35Zhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/307Tutorials Outdated2020-06-11T20:35:35ZErik NygrenTutorials Outdatedhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/297Done __all__ rewards wrong2020-06-18T10:14:25ZErik NygrenDone __all__ rewards wrongIf the environment terminates when max time steps are reached and we keep on calling env.step() then the global reward is returned to alla gents as if they finished.
This behavior is not intended. We should remove the bevhavior and upd...If the environment terminates when max time steps are reached and we keep on calling env.step() then the global reward is returned to alla gents as if they finished.
This behavior is not intended. We should remove the bevhavior and update it. A refactoring on how we terminate the environment when max time steps is reached would be best.Erik NygrenErik Nygrenhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/296Max_time_step not computable2019-11-27T15:05:30ZErik NygrenMax_time_step not computableIt is impossible for the participants to compute the max number of time steps from pickle files if they do not have the appropriate parameters used for generating the pickle file:
Actually, I find the max_time_steps formula to be a bit ...It is impossible for the participants to compute the max number of time steps from pickle files if they do not have the appropriate parameters used for generating the pickle file:
Actually, I find the max_time_steps formula to be a bit incorrect. When I generate local tests with different number of agents and different number of cities (starting from the example from the repository), I sometimes see the simulation ending earlier than expected. After running more such tests, it seems obvious that the actual formula is:
max_time_steps = int(4 * 2 * (env.width + env.height + number_of_agents / number_of_cities))
So the last term is only 20 when the ratio of agents to cities is 20. I don’t seem to find how to get the number of cities, and I also can’t find a function which returns the number of time steps (without being passed the actual ratio agents/cities as an argument).
I would really like to know the maximum number of time steps when making decisions - can you please suggest a way to achieve this?
We should update this funciton and/or pickle file saving to resolve this issue.https://gitlab.aicrowd.com/flatland/flatland/-/issues/295ci profiling fails2019-11-08T15:47:34ZChristian Eichenbergerci profiling failshttps://gitlab.aicrowd.com/flatland/flatland/-/jobs/5242
```Traceback (most recent call last):
File "benchmarks/profile_all_examples.py", line 34, in <module>
profile('examples', entry)
File "benchmarks/profile_all_examples.py", ...https://gitlab.aicrowd.com/flatland/flatland/-/jobs/5242
```Traceback (most recent call last):
File "benchmarks/profile_all_examples.py", line 34, in <module>
profile('examples', entry)
File "benchmarks/profile_all_examples.py", line 24, in profile
cProfile.run('my_func()', sort='time')
File "/builds/flatland/flatland/.tox/profiling/lib/python3.6/cProfile.py", line 16, in run
return _pyprofile._Utils(Profile).run(statement, filename, sort)
File "/builds/flatland/flatland/.tox/profiling/lib/python3.6/profile.py", line 55, in run
prof.run(statement)
File "/builds/flatland/flatland/.tox/profiling/lib/python3.6/cProfile.py", line 95, in run
return self.runctx(cmd, dict, dict)
File "/builds/flatland/flatland/.tox/profiling/lib/python3.6/cProfile.py", line 100, in runctx
exec(cmd, globals, locals)
File "<string>", line 1, in <module>
File "benchmarks/profile_all_examples.py", line 22, in my_func
def my_func(): runpy.run_path(file_in, run_name="__main__")
File "/builds/flatland/flatland/.tox/profiling/lib/python3.6/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/builds/flatland/flatland/.tox/profiling/lib/python3.6/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/builds/flatland/flatland/.tox/profiling/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/builds/flatland/flatland/examples/introduction_flatland_2_1.py", line 6, in <module>
from envs.malfunction_generators import malfunction_from_params
ModuleNotFoundError: No module named 'envs'
ERROR: InvocationError for command /builds/flatland/flatland/.tox/profiling/bin/python benchmarks/profile_all_examples.py (exited with code 1)
___________________________________ summary ____________________________________
ERROR: profiling: commands failed
ERROR: Job failed: command terminated with exit code 1
```https://gitlab.aicrowd.com/flatland/flatland/-/issues/282Store / persist namedtuples (using pickle / msgpack)2020-06-11T20:40:03ZErik NygrenStore / persist namedtuples (using pickle / msgpack)Malfunction data is stored as named tuple. msgpack turns this into a tuple and we have to make a named tuple out of it again.
Is it possible to save named tuples correctly?
(edited by Jeremy to reflect that pickle can handle named tupl...Malfunction data is stored as named tuple. msgpack turns this into a tuple and we have to make a named tuple out of it again.
Is it possible to save named tuples correctly?
(edited by Jeremy to reflect that pickle can handle named tuples and msgpack cannot)https://gitlab.aicrowd.com/flatland/flatland/-/issues/279test scenes for unit tests should to be generated on the fly rather than chec...2020-06-11T20:37:45ZChristian Baumbergertest scenes for unit tests should to be generated on the fly rather than checked into VCS### Story
As a developer, I want RailEnvs for unit tests to be generated on the fly rather than check into VCS so that we always get valid RailEnvs (version compatibility).
### Acceptance Criteria
- Test files Level_distance_map_shortes...### Story
As a developer, I want RailEnvs for unit tests to be generated on the fly rather than check into VCS so that we always get valid RailEnvs (version compatibility).
### Acceptance Criteria
- Test files Level_distance_map_shortest_path.pkl and test_002.pkl which are used in unit tests - test_flatland_envs_rail_env_shortest_paths should be generated on the fly and not committed to version control system.
- Enable unit tests tests test_flatland_envs_rail_env_shortest_paths again
adrian_egliadrian_eglihttps://gitlab.aicrowd.com/flatland/flatland/-/issues/272Installation issue windows: FLATland & Conda2019-10-31T12:06:17Zadrian_egliInstallation issue windows: FLATland & CondaInstallation issue windows: FLATland
conda create --name submission-scoring python=3.7
conda activate submission-scoring
conda install -c potassco clingo-dl
python -m pip install "flake8>=3.7.7"
python -m pip install "flake8-eradicate...Installation issue windows: FLATland
conda create --name submission-scoring python=3.7
conda activate submission-scoring
conda install -c potassco clingo-dl
python -m pip install "flake8>=3.7.7"
python -m pip install "flake8-eradicate>=0.2.0"
python -m pip install "pytest>=3.8.2"
python -m pip install "pytest-runner>=4.2"
python -m pip install "flatland-rl>=2.1.8"
python -m pip install "ortools>=7.3"
(submission-scoring) C:\>python -m pip install "flatland-rl>=2.1.8"
Collecting flatland-rl>=2.1.8
Downloading https://files.pythonhosted.org/packages/5d/f0/63eed9a8bd4f374c1d3a1f4ef11399acded36012d80a70bbdddabe480a37/flatland-rl-2.1.8.tar.gz (2.5MB)
|████████████████████████████████| 2.5MB 2.2MB/s
ERROR: Command errored out with exit status 1:
command: 'C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\u216993\\AppData\\Local\\Temp\\pip-install-p425byoh\\flatland-rl\\setup.py'"'"'; __file__='"'"'C:\\Users\\u216993\\AppData\\Local\\Temp\\pip-install-p425byoh\\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\u216993\AppData\Local\Temp\pip-install-p425byoh\flatland-rl\pip-egg-info'
cwd: C:\Users\u216993\AppData\Local\Temp\pip-install-p425byoh\flatland-rl\
Complete output (292 lines):
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\gym-0.14.0-py3.7.egg
Searching for ushlex
Reading https://pypi.org/simple/ushlex/
Downloading https://files.pythonhosted.org/packages/48/e0/33fa11058c8efc51ba3520ceb85c9fa0c5e42ce414b885fcd5e12132d13b/ushlex-0.99.1.tar.gz#sha256=6d681561545a9781430d5254eab9a648bade78c82ffd127d56c9228ae8887d46
Best match: ushlex 0.99.1
Processing ushlex-0.99.1.tar.gz
Writing C:\Users\u216993\AppData\Local\Temp\easy_install-bqa60o_f\ushlex-0.99.1\setup.cfg
Running ushlex-0.99.1\setup.py -q bdist_egg --dist-dir C:\Users\u216993\AppData\Local\Temp\easy_install-bqa60o_f\ushlex-0.99.1\egg-dist-tmp-82vyfsgp
File "build\bdist.win-amd64\egg\ushlex.py", line 59
print 'shlex: reading from %s, line %d' \
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('shlex: reading from %s, line %d' \)?
zip_safe flag not set; analyzing archive contents...
Copying ushlex-0.99.1-py3.7.egg to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\ushlex-0.99.1-py3.7.egg
Searching for timeout-decorator>=0.4.1
Reading https://pypi.org/simple/timeout-decorator/
Downloading https://files.pythonhosted.org/packages/07/1c/0d9adcb848f1690f3253dcb1c1557b6cf229a93e724977cb83f266cbd0ae/timeout-decorator-0.4.1.tar.gz#sha256=1a5e276e75c1c5acbf3cdbd9b5e45d77e1f8626f93e39bd5115d68119171d3c6
Best match: timeout-decorator 0.4.1
Processing timeout-decorator-0.4.1.tar.gz
Writing C:\Users\u216993\AppData\Local\Temp\easy_install-lbnt9_sa\timeout-decorator-0.4.1\setup.cfg
Running timeout-decorator-0.4.1\setup.py -q bdist_egg --dist-dir C:\Users\u216993\AppData\Local\Temp\easy_install-lbnt9_sa\timeout-decorator-0.4.1\egg-dist-tmp-w96n28lh
zip_safe flag not set; analyzing archive contents...
Copying timeout_decorator-0.4.1-py3.7.egg to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\timeout_decorator-0.4.1-py3.7.egg
Searching for importlib-resources>=1.0.1
Reading https://pypi.org/simple/importlib-resources/
Downloading https://files.pythonhosted.org/packages/2f/f7/b4aa02cdd3ee7ebba375969d77c00826aa15c5db84247d23c89522dccbfa/importlib_resources-1.0.2-py2.py3-none-any.whl#sha256=6e2783b2538bd5a14678284a3962b0660c715e5a0f10243fd5e00a4b5974f50b
Best match: importlib-resources 1.0.2
Processing importlib_resources-1.0.2-py2.py3-none-any.whl
Installing importlib_resources-1.0.2-py2.py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\importlib_resources-1.0.2-py3.7.egg
Searching for pyarrow>=0.13.0
Reading https://pypi.org/simple/pyarrow/
Downloading https://files.pythonhosted.org/packages/00/07/020b6758d6c8ff6ad6a45a4876ddde609d1375cb66ef01e74cdbd527a266/pyarrow-0.15.0-cp37-cp37m-win_amd64.whl#sha256=dc5d605cb5403ec92e1467f8f19bcc733ce763765f0236334181dcfd150c2216
Best match: pyarrow 0.15.0
Processing pyarrow-0.15.0-cp37-cp37m-win_amd64.whl
Installing pyarrow-0.15.0-cp37-cp37m-win_amd64.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\pyarrow-0.15.0-py3.7-win-amd64.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\pyarrow-0.15.0-py3.7-win-amd64.egg
Searching for svgutils>=0.3.1
Reading https://pypi.org/simple/svgutils/
Downloading https://files.pythonhosted.org/packages/79/da/4f7a31a55c247e304a338716e75d761f3dc9b50b220fcfaad7398668367e/svgutils-0.3.1-py2.py3-none-any.whl#sha256=6c136225fd210b844a2a90011563195fba4968d2d5cc96e737784a4728850f3a
Best match: svgutils 0.3.1
Processing svgutils-0.3.1-py2.py3-none-any.whl
Installing svgutils-0.3.1-py2.py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\svgutils-0.3.1-py3.7.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\svgutils-0.3.1-py3.7.egg
Searching for msgpack-numpy>=0.4.4.0
Reading https://pypi.org/simple/msgpack-numpy/
Downloading https://files.pythonhosted.org/packages/c8/ab/09904a909bccc471f219fb8f5d0838cbcb10cc26089a2b29e84c893e216e/msgpack_numpy-0.4.4.3-py2.py3-none-any.whl#sha256=ae5f04d4a2274d14549dd057f3ae03a0523700a13dae3e906ddaf2a6d2844400
Best match: msgpack-numpy 0.4.4.3
Processing msgpack_numpy-0.4.4.3-py2.py3-none-any.whl
Installing msgpack_numpy-0.4.4.3-py2.py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\msgpack_numpy-0.4.4.3-py3.7.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\msgpack_numpy-0.4.4.3-py3.7.egg
Searching for msgpack>=0.6.1
Reading https://pypi.org/simple/msgpack/
Downloading https://files.pythonhosted.org/packages/41/0a/49b522c5b23006d60669ec8dc97558e91880673e170108e0e9e21fc452e3/msgpack-0.6.2-cp37-cp37m-win_amd64.whl#sha256=1904b7cb65342d0998b75908304a03cb004c63ef31e16c8c43fee6b989d7f0d7
Best match: msgpack 0.6.2
Processing msgpack-0.6.2-cp37-cp37m-win_amd64.whl
Installing msgpack-0.6.2-cp37-cp37m-win_amd64.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\msgpack-0.6.2-py3.7-win-amd64.egg
Searching for CairoSVG>=2.3.1
Reading https://pypi.org/simple/CairoSVG/
Downloading https://files.pythonhosted.org/packages/8e/3a/762f9272c20db092f4d537aaf364dd0770ecf8f7101b58c4e933e99ee2f6/CairoSVG-2.4.2-py3-none-any.whl#sha256=9cb1df7e9bc60f75fb87f67940a8fb805aad544337a67a40b67c05cfe33711a2
Best match: CairoSVG 2.4.2
Processing CairoSVG-2.4.2-py3-none-any.whl
Installing CairoSVG-2.4.2-py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\CairoSVG-2.4.2-py3.7.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\cairosvg-2.4.2-py3.7.egg
Searching for Pillow>=5.4.1
Reading https://pypi.org/simple/Pillow/
Downloading https://files.pythonhosted.org/packages/70/f4/9dd0b7b0fea09cf4e7a2822031f2157f40d41f0252a89558bdb583e24ef1/Pillow-6.2.1-cp37-cp37m-win_amd64.whl#sha256=6c1db03e8dff7b9f955a0fb9907eb9ca5da75b5ce056c0c93d33100a35050281
Best match: Pillow 6.2.1
Processing Pillow-6.2.1-cp37-cp37m-win_amd64.whl
Installing Pillow-6.2.1-cp37-cp37m-win_amd64.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\pillow-6.2.1-py3.7-win-amd64.egg
Searching for matplotlib>=3.0.2
Reading https://pypi.org/simple/matplotlib/
Downloading https://files.pythonhosted.org/packages/bc/83/146ff950c41e82b527bc8641e7a760b5b3399e8934b01bf1b762b7baafc8/matplotlib-3.2.0rc1-cp37-cp37m-win_amd64.whl#sha256=e8dcb5641ec68e3c4f6b3c390296fb01a4d6e78365e76de4fc563ddfeb973589
Best match: matplotlib 3.2.0rc1
Processing matplotlib-3.2.0rc1-cp37-cp37m-win_amd64.whl
Installing matplotlib-3.2.0rc1-cp37-cp37m-win_amd64.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\matplotlib-3.2.0rc1-py3.7-win-amd64.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\matplotlib-3.2.0rc1-py3.7-win-amd64.egg
Searching for xarray>=0.11.3
Reading https://pypi.org/simple/xarray/
Downloading https://files.pythonhosted.org/packages/7e/84/e1127b7807a1a98da6d977939b11e89cb924b8b6d8917d9894eb8f39c230/xarray-0.14.0-py3-none-any.whl#sha256=9a4f97c6a7fdf9a6dd873ac679a86abfa1910263a85774d69bc3c0fa1e7967f5
Best match: xarray 0.14.0
Processing xarray-0.14.0-py3-none-any.whl
Installing xarray-0.14.0-py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\xarray-0.14.0-py3.7.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\xarray-0.14.0-py3.7.egg
Searching for recordtype>=1.3
Reading https://pypi.org/simple/recordtype/
Downloading https://files.pythonhosted.org/packages/60/9a/835ba329e31aa471a5597c733f7ca0136b3a0622ce01b9e66b40f5909da4/recordtype-1.3-py2.py3-none-any.whl#sha256=69525cdb75b7240f7aa353aa340bfdda128528de24e2a7700ba375687382a8d1
Best match: recordtype 1.3
Processing recordtype-1.3-py2.py3-none-any.whl
Installing recordtype-1.3-py2.py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\recordtype-1.3-py3.7.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\recordtype-1.3-py3.7.egg
Searching for numpy>=1.16.2
Reading https://pypi.org/simple/numpy/
Downloading https://files.pythonhosted.org/packages/e9/dd/a177f27765b1e5f94fa879cbeef61f8807086371d0b6aa232b836d38b78b/numpy-1.17.3-cp37-cp37m-win_amd64.whl#sha256=0b0dd8f47fb177d00fa6ef2d58783c4f41ad3126b139c91dd2f7c4b3fdf5e9a5
Best match: numpy 1.17.3
Processing numpy-1.17.3-cp37-cp37m-win_amd64.whl
Installing numpy-1.17.3-cp37-cp37m-win_amd64.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\numpy-1.17.3-py3.7-win-amd64.egg
Searching for crowdai-api>=0.1.21
Reading https://pypi.org/simple/crowdai-api/
Downloading https://files.pythonhosted.org/packages/0c/ee/55912b05af8994a190280e3281a18720f8d69da02dcb7ff44e1b96974345/crowdai_api-0.1.22.tar.gz#sha256=2a7a2bc54fb90229420fc2ae43148ea78913e11dcc95b129e99380f2b15d0a96
Best match: crowdai-api 0.1.22
Processing crowdai_api-0.1.22.tar.gz
Writing C:\Users\u216993\AppData\Local\Temp\easy_install-ubprqpc_\crowdai_api-0.1.22\setup.cfg
Running crowdai_api-0.1.22\setup.py -q bdist_egg --dist-dir C:\Users\u216993\AppData\Local\Temp\easy_install-ubprqpc_\crowdai_api-0.1.22\egg-dist-tmp-lob14z97
creating c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\crowdai_api-0.1.22-py3.7.egg
Extracting crowdai_api-0.1.22-py3.7.egg to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\crowdai_api-0.1.22-py3.7.egg
Searching for Click>=7.0
Reading https://pypi.org/simple/Click/
Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl#sha256=2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13
Best match: Click 7.0
Processing Click-7.0-py2.py3-none-any.whl
Installing Click-7.0-py2.py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\click-7.0-py3.7.egg
Searching for tox>=3.5.2
Reading https://pypi.org/simple/tox/
Downloading https://files.pythonhosted.org/packages/a7/0c/ed234b83d2c4fcef1cfccf97371183d51dafae62e64334de34d0a6333114/tox-3.14.0-py2.py3-none-any.whl#sha256=0bc216b6a2e6afe764476b4a07edf2c1dab99ed82bb146a1130b2e828f5bff5e
Best match: tox 3.14.0
Processing tox-3.14.0-py2.py3-none-any.whl
Installing tox-3.14.0-py2.py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\tox-3.14.0-py3.7.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\tox-3.14.0-py3.7.egg
Searching for cloudpickle~=1.2.0
Reading https://pypi.org/simple/cloudpickle/
Downloading https://files.pythonhosted.org/packages/c1/49/334e279caa3231255725c8e860fa93e72083567625573421db8875846c14/cloudpickle-1.2.2-py2.py3-none-any.whl#sha256=f3ef2c9d438f1553ce7795afb18c1f190d8146132496169ef6aa9b7b65caa4c3
Best match: cloudpickle 1.2.2
Processing cloudpickle-1.2.2-py2.py3-none-any.whl
Installing cloudpickle-1.2.2-py2.py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\cloudpickle-1.2.2-py3.7.egg
Searching for pyglet<=1.3.2,>=1.2.0
Reading https://pypi.org/simple/pyglet/
Downloading https://files.pythonhosted.org/packages/1c/fc/dad5eaaab68f0c21e2f906a94ddb98175662cc5a654eee404d59554ce0fa/pyglet-1.3.2-py2.py3-none-any.whl#sha256=8b07aea16f34ac861cffd06a0c17723ca944d172e577b57b21859b7990709a66
Best match: pyglet 1.3.2
Processing pyglet-1.3.2-py2.py3-none-any.whl
Installing pyglet-1.3.2-py2.py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\pyglet-1.3.2-py3.7.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\pyglet-1.3.2-py3.7.egg
Searching for scipy
Reading https://pypi.org/simple/scipy/
Downloading https://files.pythonhosted.org/packages/50/eb/defa40367863304e1ef01c6572584c411446a5f29bdd9dc90f91509e9144/scipy-1.3.1-cp37-cp37m-win_amd64.whl#sha256=a9d606d11eb2eec7ef893eb825017fbb6eef1e1d0b98a5b7fc11446ebeb2b9b1
Best match: scipy 1.3.1
Processing scipy-1.3.1-cp37-cp37m-win_amd64.whl
Installing scipy-1.3.1-cp37-cp37m-win_amd64.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\scipy-1.3.1-py3.7-win-amd64.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\scipy-1.3.1-py3.7-win-amd64.egg
Searching for lxml
Reading https://pypi.org/simple/lxml/
Downloading https://files.pythonhosted.org/packages/bc/87/c3cecadcb5d7924cd71724b177343149cfc3609a89b197a991ac8593ed8c/lxml-4.4.1-cp37-cp37m-win_amd64.whl#sha256=2e8f77db25b0a96af679e64ff9bf9dddb27d379c9900c3272f3041c4d1327c9d
Best match: lxml 4.4.1
Processing lxml-4.4.1-cp37-cp37m-win_amd64.whl
Installing lxml-4.4.1-cp37-cp37m-win_amd64.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\lxml-4.4.1-py3.7-win-amd64.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\lxml-4.4.1-py3.7-win-amd64.egg
Searching for tinycss2
Reading https://pypi.org/simple/tinycss2/
Downloading https://files.pythonhosted.org/packages/94/2c/4e501f9c351343c8ba10d70b5a7ca97cdab2690af043a6e52ada65b85b6b/tinycss2-1.0.2-py3-none-any.whl#sha256=9fdacc0e22d344ddd2ca053837c133900fe820ae1222f63b79617490a498507a
Best match: tinycss2 1.0.2
Processing tinycss2-1.0.2-py3-none-any.whl
Installing tinycss2-1.0.2-py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\tinycss2-1.0.2-py3.7.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\tinycss2-1.0.2-py3.7.egg
Searching for defusedxml
Reading https://pypi.org/simple/defusedxml/
Downloading https://files.pythonhosted.org/packages/06/74/9b387472866358ebc08732de3da6dc48e44b0aacd2ddaa5cb85ab7e986a2/defusedxml-0.6.0-py2.py3-none-any.whl#sha256=6687150770438374ab581bb7a1b327a847dd9c5749e396102de3fad4e8a3ef93
Best match: defusedxml 0.6.0
Processing defusedxml-0.6.0-py2.py3-none-any.whl
Installing defusedxml-0.6.0-py2.py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\defusedxml-0.6.0-py3.7.egg
Searching for cssselect2
Reading https://pypi.org/simple/cssselect2/
Downloading https://files.pythonhosted.org/packages/c4/a1/1a37602bbcfa2f7c079758f31555776a00a947e43457a3e0110b2165c7d9/cssselect2-0.2.2-py2.py3-none-any.whl#sha256=07e9c3b1b52d81dd08b177532bbd6b9ced650d87abfd641f4e4ec7de34b98807
Best match: cssselect2 0.2.2
Processing cssselect2-0.2.2-py2.py3-none-any.whl
Installing cssselect2-0.2.2-py2.py3-none-any.whl to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
writing requirements to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\cssselect2-0.2.2-py3.7.egg\EGG-INFO\requires.txt
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\cssselect2-0.2.2-py3.7.egg
Searching for cairocffi
Reading https://pypi.org/simple/cairocffi/
Downloading https://files.pythonhosted.org/packages/f7/99/b3a2c6393563ccbe081ffcceb359ec27a6227792c5169604c1bd8128031a/cairocffi-1.1.0.tar.gz#sha256=f1c0c5878f74ac9ccb5d48b2601fcc75390c881ce476e79f4cfedd288b1b05db
Best match: cairocffi 1.1.0
Processing cairocffi-1.1.0.tar.gz
Writing C:\Users\u216993\AppData\Local\Temp\easy_install-vb4jn6v9\cairocffi-1.1.0\setup.cfg
Running cairocffi-1.1.0\setup.py -q bdist_egg --dist-dir C:\Users\u216993\AppData\Local\Temp\easy_install-vb4jn6v9\cairocffi-1.1.0\egg-dist-tmp-_spva66x
warning: no previously-included files found matching 'setup.pyc'
warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'
zip_safe flag not set; analyzing archive contents...
pycparser.ply.__pycache__.lex.cpython-37: module references __file__
pycparser.ply.__pycache__.lex.cpython-37: module MAY be using inspect.getsourcefile
pycparser.ply.__pycache__.yacc.cpython-37: module references __file__
pycparser.ply.__pycache__.yacc.cpython-37: module MAY be using inspect.getsourcefile
pycparser.ply.__pycache__.yacc.cpython-37: module MAY be using inspect.stack
pycparser.ply.__pycache__.ygen.cpython-37: module references __file__
Installed c:\users\u216993\appdata\local\temp\easy_install-vb4jn6v9\cairocffi-1.1.0\.eggs\pycparser-2.19-py3.7.egg
package init file 'cairocffi\_generated\__init__.py' not found (or not a regular file)
file cairocffi\_generated\ffi.py (for module cairocffi._generated.ffi) not found
file cairocffi\_generated\ffi_pixbuf.py (for module cairocffi._generated.ffi_pixbuf) not found
file cairocffi\_generated\ffi.py (for module cairocffi._generated.ffi) not found
file cairocffi\_generated\ffi_pixbuf.py (for module cairocffi._generated.ffi_pixbuf) not found
zip_safe flag not set; analyzing archive contents...
cairocffi.__pycache__.__init__.cpython-37: module references __file__
cairocffi.__pycache__.ffi_build.cpython-37: module references __file__
creating c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\cairocffi-1.1.0-py3.7.egg
Extracting cairocffi-1.1.0-py3.7.egg to c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs
Installed c:\users\u216993\appdata\local\temp\pip-install-p425byoh\flatland-rl\.eggs\cairocffi-1.1.0-py3.7.egg
Traceback (most recent call last):
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\shutil.py", line 398, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Zugriff verweigert: 'C:\\Users\\u216993\\AppData\\Local\\Temp\\easy_install-vb4jn6v9\\cairocffi-1.1.0\\.eggs\\cffi-1.13.1-py3.7-win-amd64.egg\\_cffi_backend.cp37-win_amd64.pyd'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\u216993\AppData\Local\Temp\pip-install-p425byoh\flatland-rl\setup.py", line 84, in <module>
zip_safe=False,
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\setuptools\__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\setuptools\dist.py", line 720, in fetch_build_eggs
replace_conflicting=True,
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\pkg_resources\__init__.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
return self.obtain(req, installer)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
return installer(requirement)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\setuptools\dist.py", line 787, in fetch_build_egg
return cmd.easy_install(req)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\setuptools\command\easy_install.py", line 679, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\contextlib.py", line 119, in __exit__
next(self.gen)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\setuptools\command\easy_install.py", line 643, in _tmpdir
os.path.exists(tmpdir) and rmtree(rmtree_safe(tmpdir))
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\setuptools\command\easy_install.py", line 2277, in rmtree
return shutil.rmtree(path, ignore_errors, onerror)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\shutil.py", line 516, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\shutil.py", line 395, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\shutil.py", line 395, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\shutil.py", line 395, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\shutil.py", line 400, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Users\u216993\AppData\Local\Continuum\miniconda3\envs\submission-scoring\lib\site-packages\setuptools\command\easy_install.py", line 1727, in auto_chmod
return func(arg)
PermissionError: [WinError 5] Zugriff verweigert: 'C:\\Users\\u216993\\AppData\\Local\\Temp\\easy_install-vb4jn6v9\\cairocffi-1.1.0\\.eggs\\cffi-1.13.1-py3.7-win-amd64.egg\\_cffi_backend.cp37-win_amd64.pyd'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.Christian EichenbergerChristian Eichenbergerhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/255Synchronization of agent steps2019-10-23T16:07:24ZErik NygrenSynchronization of agent steps### Story
As a Project Member, I want to discuss and update the way steps are executed in agents. Currently each agents action is executed squentially. This means that optimizers struggle to find optimal solutions as there is an asymmetr...### Story
As a Project Member, I want to discuss and update the way steps are executed in agents. Currently each agents action is executed squentially. This means that optimizers struggle to find optimal solutions as there is an asymmetry introduced by the agent index.
We want to change this behavior by removing this assymetry by either:
- There is a minimal release time of each cell (e.g. 1 step). This means that a new agent can only enter a cell when the previous cell has been empty for at least one time step.
- We test for all legal actions sequentially and only update the agent true position after all agents have performed their tests. This however will introduce potential conflicts where multiple agents want to enter the same cell at the same time. This could be regarded as a crash and environment would terminate. This is too much of a change for the current running challenge
### Acceptance Criteria
- We agree as a team on what way to go
- We open an issue to resolve the problem by implementing the discussed solutionhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/212seed distribution2019-10-22T18:46:42ZErik Nygrenseed distributionAll rail and schedule generators need to get their seed in the same manner as imported rails and schedule from file.
This is to guarantee that to envs do not diverge over time. Important for scoringAll rail and schedule generators need to get their seed in the same manner as imported rails and schedule from file.
This is to guarantee that to envs do not diverge over time. Important for scoringmohantymohantyhttps://gitlab.aicrowd.com/flatland/flatland/-/issues/206reset() should take initial number of agents and not that of last generated rail2019-11-06T15:55:49ZErik Nygrenreset() should take initial number of agents and not that of last generated railIf we change number of agents, then a reset with new rail generation should try to reset the number of agents to the initial number of agents.If we change number of agents, then a reset with new rail generation should try to reset the number of agents to the initial number of agents.v3https://gitlab.aicrowd.com/flatland/flatland/-/issues/187Running `example/simple_example_1/2/3.py` render issue on Linux2020-06-11T20:49:08ZErik NygrenRunning `example/simple_example_1/2/3.py` render issue on LinuxWhen running the example file simple_example_1/2/3.py in the example folder, the rendered popup window is just blank, while running the 'flatland_2_0_example.py` is showing the generated railway and animation correctly.
On Windows machi...When running the example file simple_example_1/2/3.py in the example folder, the rendered popup window is just blank, while running the 'flatland_2_0_example.py` is showing the generated railway and animation correctly.
On Windows machine, everything seems to be fine.
Tried to play with the gl parameter, but no luck.
OS: Ubuntu 18.04
Flatland: newest from git.v3MasterScratMasterScrat2019-10-23https://gitlab.aicrowd.com/flatland/flatland/-/issues/137Tkinter2019-10-22T19:33:23ZErik NygrenTkinterGet Tk work for Notebooks or anywhere where there is an xServer.Get Tk work for Notebooks or anywhere where there is an xServer.v3adrian_egliadrian_eglihttps://gitlab.aicrowd.com/flatland/flatland/-/issues/112Tkinter based renderer fails on jupyter running remotely2019-10-22T19:33:27ZMarc-OliverTkinter based renderer fails on jupyter running remotelyHi,
when executing the flatland rendering inside a jupyter notebook that is running on a *remote host*,
the import of RenderRool fails with the following error message:
```
--------------------------------------------------------------...Hi,
when executing the flatland rendering inside a jupyter notebook that is running on a *remote host*,
the import of RenderRool fails with the following error message:
```
---------------------------------------------------------------------------
TclError Traceback (most recent call last)
<ipython-input-1-942983ccfa4e> in <module>
5 from flatland.envs.observations import TreeObsForRailEnv
6 from flatland.envs.rail_env import RailEnv
----> 7 from flatland.utils.rendertools import RenderTool
/opt/conda/lib/python3.7/site-packages/flatland/utils/rendertools.py in <module>
7 from recordtype import recordtype
8
----> 9 from flatland.utils.graphics_pil import PILGL, PILSVG
10
11
/opt/conda/lib/python3.7/site-packages/flatland/utils/graphics_pil.py in <module>
33
34
---> 35 class PILGL(GraphicsLayer):
36 # tk.Tk() must be a singleton!
37 # https://stackoverflow.com/questions/26097811/image-pyimage2-doesnt-exist
/opt/conda/lib/python3.7/site-packages/flatland/utils/graphics_pil.py in PILGL()
36 # tk.Tk() must be a singleton!
37 # https://stackoverflow.com/questions/26097811/image-pyimage2-doesnt-exist
---> 38 window = tk.Tk()
39
40 def __init__(self, width, height, jupyter=False):
/opt/conda/lib/python3.7/tkinter/__init__.py in __init__(self, screenName, baseName, className, useTk, sync, use)
2021 baseName = baseName + ext
2022 interactive = 0
-> 2023 self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
2024 if useTk:
2025 self._loadtk()
TclError: no display name and no $DISPLAY environment variable
```
The problem is Tkinter which depends on the presence of a local display which, in case of a server-based installation is not available.v3hagrid67hagrid67