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

reinforcement_q_learning.ipynb代码测试问题 #3

Open
GuilinF opened this issue May 27, 2019 · 1 comment
Open

reinforcement_q_learning.ipynb代码测试问题 #3

GuilinF opened this issue May 27, 2019 · 1 comment

Comments

@GuilinF
Copy link

GuilinF commented May 27, 2019

No description provided.

@GuilinF
Copy link
Author

GuilinF commented May 27, 2019

D:\Anaconda3\lib\site-packages\gym\envs\registration.py:14: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
result = entry_point.load(False)
Traceback (most recent call last):
File "D:/Anaconda3code/强化学习-叶强/第六章的DQN/reinforcement_q_learning1.py", line 113, in
plt.imshow(get_screen().cpu().squeeze(0).permute(1, 2, 0).numpy(),
File "D:/Anaconda3code/强化学习-叶强/第六章的DQN/reinforcement_q_learning1.py", line 88, in get_screen
screen = env.render(mode='rgb_array').transpose(
File "D:\Anaconda3\lib\site-packages\gym\envs\classic_control\cartpole.py", line 188, in render
return self.viewer.render(return_rgb_array = mode=='rgb_array')
File "D:\Anaconda3\lib\site-packages\gym\envs\classic_control\rendering.py", line 96, in render
arr = np.fromstring(image_data.data, dtype=np.uint8, sep='')
AttributeError: 'ImageData' object has no attribute 'data'
Exception ignored in: <bound method Viewer.del of <gym.envs.classic_control.rendering.Viewer object at 0x00000000160D5CF8>>
Traceback (most recent call last):
File "D:\Anaconda3\lib\site-packages\gym\envs\classic_control\rendering.py", line 143, in del
File "D:\Anaconda3\lib\site-packages\gym\envs\classic_control\rendering.py", line 62, in close
File "D:\Anaconda3\lib\site-packages\pyglet\window\win32_init_.py", line 306, in close
File "D:\Anaconda3\lib\site-packages\pyglet\window_init_.py", line 834, in close
ImportError: sys.meta_path is None, Python is likely shutting down

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

1 participant