Closed opocaj92 closed 1 year ago
I was getting this error as well when testing with SB3, I believe this line fixes it (I tested a number of different options and this was the only way of fixing it IIRC) https://github.com/Farama-Foundation/SuperSuit/blob/e27b0e1d4ed724d468f41233154487da28671951/supersuit/vector/sb3_vector_wrapper.py#L41
Hi all, I have a custom PettingZoo
ParallelEnv
, that is then converted to aSB3VecEnvWrapper
throughNow, I need to access an attribute of
env
, and I am trying withvec_env.get_attr(name)
(thatSB3VecEnvWrapper
should inherit from stable_baselines3'sVecEnvWrapper
), but I get an error:AttributeError: 'ConcatVecEnv' object has no attribute 'get_attr'
ConcatVecEnv
is inheriting from gymVectorEnv
, that indeed has aget_attr(name)
method. So, what am I doing wrong here?My setting the following: