Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Message about Grid2OpException Backend Error #62

Open
dderrickWangTTyy opened this issue Jun 2, 2022 · 1 comment
Open

Error Message about Grid2OpException Backend Error #62

dderrickWangTTyy opened this issue Jun 2, 2022 · 1 comment

Comments

@dderrickWangTTyy
Copy link

I ran the code getting_started_api.ipynb in the Pycharm with chroniX2grid 1.0.2. But there is an error saying "grid2op.Exceptions.BackendExceptions.BackendError: Grid2OpException BackendError "Impossible to load the redispatching data. The generator 19 with the name gen_41_19 could not be located on the description file "prods_charac.csv"." Does anyone have a similiar issue? Here is the Traceback. Thank you!

Traceback (most recent call last):
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\Backend\Backend.py", line 1369, in load_redispacthing_data
tmp_gen = gen_info[gen_nm]
KeyError: 'gen_41_19'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Derrick\Downloads\DS3L\RL_getstarted\getting_started_api.py", line 90, in
env118_withoutchron = grid2op.make(
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\MakeEnv\Make.py", line 392, in make
return make_from_path_fn(
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\MakeEnv\MakeFromPath.py", line 764, in make_from_dataset_path
env = Environment(
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\Environment\Environment.py", line 161, in init
self._init_backend(
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\Environment\Environment.py", line 231, in _init_backend
self.backend.load_redispacthing_data(self.get_path_env())
File "C:\Users\Derrick\AppData\Local\Programs\Python\Python39\lib\site-packages\grid2op\Backend\Backend.py", line 1371, in load_redispacthing_data
raise BackendError(
grid2op.Exceptions.BackendExceptions.BackendError: Grid2OpException BackendError "Impossible to load the redispatching data. The generator 19 with name gen_41_19 could not be located on the description file "prods_charac.csv"."

@marota
Copy link
Collaborator

marota commented Nov 10, 2022

Sorry for the delayed response. Are you running the notebook without modification or are you using a different grid/Grid2op environment ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants