gxnk / reinforcement-learning-code

385 stars 246 forks source link

Exception ignored in: <bound method Viewer.__del__ of <gym.envs.classic_control.rendering.Viewer object at 0x7fa59323ea58>> #4

Open htpauleta opened 6 years ago

htpauleta commented 6 years ago

Exception ignored in: <bound method Viewer.del of <gym.envs.classic_control.rendering.Viewer object at 0x7fa59323ea58>> Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/gym/envs/classic_control/rendering.py", line 143, in del File "/usr/local/lib/python3.5/dist-packages/gym/envs/classic_control/rendering.py", line 62, in close File "/usr/local/lib/python3.5/dist-packages/pyglet/window/xlib/init.py", line 474, in close File "/usr/local/lib/python3.5/dist-packages/pyglet/gl/xlib.py", line 343, in destroy File "/usr/local/lib/python3.5/dist-packages/pyglet/gl/base.py", line 333, in destroy File "/usr/local/lib/python3.5/dist-packages/pyglet/gl/xlib.py", line 333, in detach File "/usr/local/lib/python3.5/dist-packages/pyglet/gl/lib.py", line 96, in errcheck File "", line 969, in _find_and_load File "", line 954, in _find_and_load_unlocked File "", line 887, in _find_spec TypeError: 'NoneType' object is not iterable

htpauleta commented 6 years ago

希望能给下解决方案,谢谢!

shouhuyngheng commented 6 years ago

我也遇到这样的问题了,不知道如何解决,求解。。。。。。。。。

cjing9017 commented 6 years ago

我也遇到这样的问题了,不知道如何解决,求解。。。。。。。。。

需要将环境关闭,在最后加上 env.close()