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

AttributeError: 'Env' object has no attribute 'two_player_step' #25

Open
daanklijn opened this issue Nov 30, 2020 · 0 comments
Open

AttributeError: 'Env' object has no attribute 'two_player_step' #25

daanklijn opened this issue Nov 30, 2020 · 0 comments

Comments

@daanklijn
Copy link

I am trying to run play.py. But unfortunately I end up getting the error below. I believe this is due to the Env class not having a method called two_player_step. Is it possible to recover this method?

Traceback (most recent call last):
  File "play.py", line 122, in <module>
    ani = animation.FuncAnimation(fig, updatefig, interval=20, blit=True)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py", line 1656, in __init__
    TimedAnimation.__init__(self, fig, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py", line 1416, in __init__
    *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py", line 945, in __init__
    self._setup_blit()
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py", line 1249, in _setup_blit
    self._post_draw(None, self._blit)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py", line 1202, in _post_draw
    self._fig.canvas.draw_idle()
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/backend_bases.py", line 2012, in draw_idle
    self.draw(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/backends/backend_agg.py", line 407, in draw
    self.figure.draw(self.renderer)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/artist.py", line 41, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/figure.py", line 1870, in draw
    self.canvas.draw_event(renderer)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/backend_bases.py", line 1759, in draw_event
    self.callbacks.process(s, event)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/cbook/__init__.py", line 229, in process
    self.exception_handler(exc)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/cbook/__init__.py", line 81, in _exception_printer
    raise exc
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/cbook/__init__.py", line 224, in process
    func(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py", line 959, in _start
    self._init_draw()
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py", line 1703, in _init_draw
    self._draw_frame(next(self.new_frame_seq()))
  File "/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py", line 1726, in _draw_frame
    self._drawn_artists = self._func(framedata, *self._args)
  File "play.py", line 102, in updatefig
    observation = env.two_player_step(player_a_action, player_b_action)[0][0]
AttributeError: 'Env' object has no attribute 'two_player_step'
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