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
@gsurma when i run it without rendering it run's fine but when i enable rendering it gives me this error
Traceback (most recent call last):
File "atari.py", line 100, in
Atari()
File "atari.py", line 20, in init
self._main_loop(self._game_model(game_mode, game_name, env.action_space.n), env, render, total_step_limit, total_run_limit, clip)
File "atari.py", line 45, in _main_loop
env.render()
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/envs/atari/atari_env.py", line 152, in render
from gym.envs.classic_control import rendering
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/envs/classic_control/rendering.py", line 27, in
from pyglet.gl import *
File "/home/overthinker/.local/lib/python2.7/site-packages/pyglet/gl/init.py", line 95, in
from pyglet.gl.lib import GLException
File "/home/overthinker/.local/lib/python2.7/site-packages/pyglet/gl/lib.py", line 149, in
from pyglet.gl.lib_glx import link_GL, link_GLU, link_GLX
File "/home/overthinker/.local/lib/python2.7/site-packages/pyglet/gl/lib_glx.py", line 38, in
import pyglet.lib
File "/home/overthinker/.local/lib/python2.7/site-packages/pyglet/lib.py", line 55, in
script_path = pyglet.resource.get_script_home()
File "/home/overthinker/.local/lib/python2.7/site-packages/pyglet/init.py", line 337, in getattr
object.setattr(self, '_module', module)
TypeError: can't apply this setattr to instance object
The text was updated successfully, but these errors were encountered:
I had the same issue while using gym while using python version 2.7, I just upgraded to python 3.5 in my virtual environment and it seems to fix the issue. Here is a link that might be helpful if you want to know more about it Link.
@gsurma when i run it without rendering it run's fine but when i enable rendering it gives me this error
Traceback (most recent call last):
File "atari.py", line 100, in
Atari()
File "atari.py", line 20, in init
self._main_loop(self._game_model(game_mode, game_name, env.action_space.n), env, render, total_step_limit, total_run_limit, clip)
File "atari.py", line 45, in _main_loop
env.render()
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/core.py", line 235, in render
return self.env.render(mode, **kwargs)
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/envs/atari/atari_env.py", line 152, in render
from gym.envs.classic_control import rendering
File "/home/overthinker/.local/lib/python2.7/site-packages/gym/envs/classic_control/rendering.py", line 27, in
from pyglet.gl import *
File "/home/overthinker/.local/lib/python2.7/site-packages/pyglet/gl/init.py", line 95, in
from pyglet.gl.lib import GLException
File "/home/overthinker/.local/lib/python2.7/site-packages/pyglet/gl/lib.py", line 149, in
from pyglet.gl.lib_glx import link_GL, link_GLU, link_GLX
File "/home/overthinker/.local/lib/python2.7/site-packages/pyglet/gl/lib_glx.py", line 38, in
import pyglet.lib
File "/home/overthinker/.local/lib/python2.7/site-packages/pyglet/lib.py", line 55, in
script_path = pyglet.resource.get_script_home()
File "/home/overthinker/.local/lib/python2.7/site-packages/pyglet/init.py", line 337, in getattr
object.setattr(self, '_module', module)
TypeError: can't apply this setattr to instance object
The text was updated successfully, but these errors were encountered: