trying to hook it up to cartpole..
print(self.env.reset())
(pid=2462395) [ 0.01369617 -0.02302133 -0.04590265 -0.04834723]
but it expects:
obs, info = self.env.reset()
ie there's no info component
the full code where the error is thrown:
from ..base import BaseWrapper
class GymWrapper(BaseWrapper):
"""
Make your own wrapper: Atari Wrapper
"""
def __init__(self, env, obs_to_string=False):
super().__init__(env, obs_to_string, False)
def step(self, action):
obs, reward, _, done, info = self.env.step(action)
info['raw_reward'] = reward
return obs, reward, done, info
def reset(self,):
print(self.env.reset())
obs, info = self.env.reset()
return obs
the error itself is:
ValueError: too many values to unpack (expected 2)
trying to hook it up to cartpole..
but it expects:
ie there's no info component
the full code where the error is thrown:
the error itself is: