Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
htpauleta opened this issue Sep 11, 2018 · 3 comments

Comments

@htpauleta
Copy link

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
Copy link
Author

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

@shouhuyngheng
Copy link

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

@cjing9017
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants