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

monitor not working in Chapter04/01_cartpole.py #3

Closed
lqiang2003cn opened this issue Sep 10, 2018 · 2 comments
Closed

monitor not working in Chapter04/01_cartpole.py #3

lqiang2003cn opened this issue Sep 10, 2018 · 2 comments

Comments

@lqiang2003cn
Copy link

i umcommented the line 79 in the Chapter04/01_cartpole.py to record video:
env = gym.wrappers.Monitor(env, directory="mon", force=True)

however, when the program terminates, it throws the following exception:

Exception ignored in: <bound method Viewer.del of <gym.envs.classic_control.rendering.Viewer object at 0x000000000507DA58>>
Traceback (most recent call last):
File "E:\dlsoft\lib\site-packages\gym\envs\classic_control\rendering.py", line 143, in del
File "E:\dlsoft\lib\site-packages\gym\envs\classic_control\rendering.py", line 62, in close
File "E:\dlsoft\lib\site-packages\pyglet\window\win32_init_.py", line 305, in close
File "E:\dlsoft\lib\site-packages\pyglet\window_init_.py", line 770, in close
ImportError: sys.meta_path is None, Python is likely shutting down

i'm working on windows in Anaconda, Any ideas ? thanks !

@Shmuma
Copy link
Collaborator

Shmuma commented Sep 25, 2018

Hi!

OpenAI gym is not supporting windows officially: openai/gym#11

Some environments might work, but weird behaviour could pop up here and there. That was the reason why in chapter2, section "Hardware and software requirements" it was stated that only linux and mac os is supported by examples.

To solve this issue I'd suggest you to install ubuntu in virtual machine or use cloud instance.

@Shmuma Shmuma closed this as completed Sep 25, 2018
@lqiang2003cn
Copy link
Author

all right , thanks anyway.

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

No branches or pull requests

2 participants