Closed GMMDMDIDEMS closed 8 months ago
There is either an error in def reset(...) or in def run_round(...).
def reset(...)
def run_round(...)
In def run_round(...) state = self.env.reset() is getting assigned a tuple of (obs, {}) from def reset(...). However, def build_state_msg(..) expects state to be a dict whose key must be a str in order to be able to call split(...).
state = self.env.reset()
(obs, {})
def build_state_msg(..)
state
str
split(...)
obs
state, _ = self.env.reset()
Thanks for the fix, it is indeed a missed usage of env that was forgotten when upgrading to gymnasium.
There is either an error in
def reset(...)
or indef run_round(...)
.In
def run_round(...)
state = self.env.reset()
is getting assigned a tuple of(obs, {})
fromdef reset(...)
.However,
def build_state_msg(..)
expectsstate
to be a dict whose key must be astr
in order to be able to callsplit(...)
.Possible fixes
obs
indef reset(...)
state, _ = self.env.reset()
indef run_round(...)