You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
No description provided.
The text was updated successfully, but these errors were encountered: