Closed joaosferreira closed 4 years ago
Hi, hope you are doing well.
I tried to run demo.py and got the following error:
demo.py
module 'pyglet.window' has no attribute 'get_platform'
Which comes from this line: https://github.com/aigagror/GymGo/blob/8e97ecf4b52213a1393fc3ce0e2e0c72d379e4fe/gym_go/envs/go_env.py#L184 I seems that pyglet.window.get_platform() and pyglet.platform.get_default_display() are deprecated and were removed.
pyglet.window.get_platform()
pyglet.platform.get_default_display()
I replaced the above line with this:
screen = pyglet.canvas.get_display().get_default_screen()
Doing this fix allowed me to run demo.py successfully.
Thank you for bringing it up! I used your solution!
I also updated the demo a little bit too
Hi, hope you are doing well.
Problem
I tried to run
demo.py
and got the following error:Which comes from this line: https://github.com/aigagror/GymGo/blob/8e97ecf4b52213a1393fc3ce0e2e0c72d379e4fe/gym_go/envs/go_env.py#L184 I seems that
pyglet.window.get_platform()
andpyglet.platform.get_default_display()
are deprecated and were removed.Possible Solution
I replaced the above line with this:
Doing this fix allowed me to run
demo.py
successfully.Environment Information
References