Closed Trinkle23897 closed 2 years ago
The reason seems to be Gym added metaclass to its env. https://github.com/openai/gym/pull/2927/files Could be resolved by https://stackoverflow.com/questions/11276037/resolving-metaclass-conflicts
We may try using class GymEnvPoolMeta(ABCMeta, gym.Env.__class__)
at
https://github.com/sail-sg/envpool/blob/669a4e6a30de4f98b34d0deb45bb81351b8e8080/envpool/python/gym_envpool.py#L42
To Reproduce
This happens in
gym==0.25.0
for all python version.Expected behavior
No import error.
Reason and Possible fixes
Hot fix:
pip install gym<0.25
. But maybe other better way?cc @mavenlin