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
3 frames
/usr/local/lib/python2.7/dist-packages/gym/envs/classic_control/rendering.pyc in render(self, return_rgb_array)
94 buffer = pyglet.image.get_buffer_manager().get_color_buffer()
95 image_data = buffer.get_image_data()
---> 96 arr = np.fromstring(image_data.data, dtype=np.uint8, sep='')
97 # In openai/gym-http-api#2, we
98 # discovered that someone using Xmonad on Arch was having
AttributeError: 'ImageData' object has no attribute 'data'
The text was updated successfully, but these errors were encountered:
I ran the colab tutorial, '1_dqn_tutorial.ipynb' without making any changes. When running the code,
env.reset()
PIL.Image.fromarray(env.render())
The following error is reported:
AttributeErrorTraceback (most recent call last)
in ()
1 env.reset()
----> 2 PIL.Image.fromarray(env.render())
3 frames
/usr/local/lib/python2.7/dist-packages/gym/envs/classic_control/rendering.pyc in render(self, return_rgb_array)
94 buffer = pyglet.image.get_buffer_manager().get_color_buffer()
95 image_data = buffer.get_image_data()
---> 96 arr = np.fromstring(image_data.data, dtype=np.uint8, sep='')
AttributeErrorTraceback (most recent call last)
in ()
1 env.reset()
----> 2 PIL.Image.fromarray(env.render())
3 frames
/usr/local/lib/python2.7/dist-packages/gym/envs/classic_control/rendering.pyc in render(self, return_rgb_array)
94 buffer = pyglet.image.get_buffer_manager().get_color_buffer()
95 image_data = buffer.get_image_data()
---> 96 arr = np.fromstring(image_data.data, dtype=np.uint8, sep='')
97 # In openai/gym-http-api#2, we
98 # discovered that someone using Xmonad on Arch was having
AttributeError: 'ImageData' object has no attribute 'data'
The text was updated successfully, but these errors were encountered: