BDonnot/grid2game

grid2op does not run

Closed this issue · 1 comments

I try to run grid2game via terminal with this command line

grid2game --dev --env_name l2rpn_case14_sandbox

but it does not run and I get this

2022-05-25 13:55:42,068 - grid2game.VizServer VizServer.py.102 | INFO:: Dash app initialized
Dash app initialized
/home/najarfar/anaconda3/envs/grid2op/lib/python3.9/site-packages/grid2op/MakeEnv/Make.py:413: UserWarning: It is the first time you use the environment "l2rpn_case14_sandbox".
We will attempt to download this environment from remote
  warnings.warn(_MAKE_FIRST_TIME_WARN.format(dataset_name))
downloading the training data, this may take a while.
l2rpn_case14_sandbox.tar.bz2: 294MB [00:04, 70.7MB/s]                           
Extract the tar archive in "/home/najarfar/data_grid2op"
	 Successfully updated file "config.py" for environment "l2rpn_case14_sandbox"
	 Successfully updated file "grid.json" for environment "l2rpn_case14_sandbox"
You may now use the environment "l2rpn_case14_sandbox" with the available data by invoking:
	env = grid2op.make("l2rpn_case14_sandbox")
2022-05-25 13:56:27,636 - grid2game.VizServer.Env env.py.67 | INFO:: Grid2op environment initialized
Grid2op environment initialized
2022-05-25 13:56:27,636 - grid2game.VizServer.Env env.py.133 | INFO:: attempt to load assistant with path : ""
attempt to load assistant with path : ""
2022-05-25 13:56:27,637 - grid2game.VizServer.Env env.py.152 | INFO:: assistant loaded with class <class 'grid2op.Agent.doNothing.DoNothingAgent'>
assistant loaded with class <class 'grid2op.Agent.doNothing.DoNothingAgent'>
2022-05-25 13:56:28,108 - grid2game.VizServer.Env env.py.295 | INFO:: Setting env seed 0 and resetting the environment.
Setting env seed 0 and resetting the environment.
2022-05-25 13:56:28,108 - grid2game.VizServer.Env env.py.298 | INFO:: seed: resetting the environment
seed: resetting the environment
2022-05-25 13:56:28,319 - grid2game.VizServer VizServer.py.142 | INFO:: Environment initialized
Environment initialized
2022-05-25 13:56:29,077 - grid2game.VizServer VizServer.py.185 | INFO:: Viz server initialized
Viz server initialized
2022-05-25 13:56:29,078 - grid2game.VizServer dash.py.2045 | INFO:: Dash is running on http://127.0.0.1:8050/

Dash is running on http://127.0.0.1:8050/

 * Serving Flask app 'grid2game.VizServer' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
2022-05-25 13:56:30,954 - grid2game.VizServer VizServer.py.102 | INFO:: Dash app initialized
Dash app initialized
2022-05-25 13:56:33,304 - grid2game.VizServer.Env env.py.67 | INFO:: Grid2op environment initialized
Grid2op environment initialized
2022-05-25 13:56:33,304 - grid2game.VizServer.Env env.py.133 | INFO:: attempt to load assistant with path : ""
attempt to load assistant with path : ""
2022-05-25 13:56:33,305 - grid2game.VizServer.Env env.py.152 | INFO:: assistant loaded with class <class 'grid2op.Agent.doNothing.DoNothingAgent'>
assistant loaded with class <class 'grid2op.Agent.doNothing.DoNothingAgent'>
2022-05-25 13:56:33,855 - grid2game.VizServer.Env env.py.295 | INFO:: Setting env seed 0 and resetting the environment.
Setting env seed 0 and resetting the environment.
2022-05-25 13:56:33,856 - grid2game.VizServer.Env env.py.298 | INFO:: seed: resetting the environment
seed: resetting the environment
2022-05-25 13:56:34,064 - grid2game.VizServer VizServer.py.142 | INFO:: Environment initialized
Environment initialized
2022-05-25 13:56:34,792 - grid2game.VizServer VizServer.py.185 | INFO:: Viz server initialized
Viz server initialized

It stops at the last line and nothing happens next.

It's not grid2op, it's grid2game...

And... It explicitly says Dash is running on http://127.0.0.1:8050/

Check there please.