From abdec3f7a2ecae7c25349bb6909f5838e34f199d Mon Sep 17 00:00:00 2001 From: Roger Larsson Date: Fri, 7 Jun 2024 16:03:16 +0200 Subject: [PATCH] Work around strange Python 3.8 bug (#1010) --- gymnasium/wrappers/vector/rendering.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gymnasium/wrappers/vector/rendering.py b/gymnasium/wrappers/vector/rendering.py index 31c739cf4..afe674e67 100644 --- a/gymnasium/wrappers/vector/rendering.py +++ b/gymnasium/wrappers/vector/rendering.py @@ -201,4 +201,5 @@ def close(self): pygame.display.quit() pygame.quit() + self.window = None # try to prevent strange Python 3.8 bug, later complaining about no self.window super().close()