lb-foraging icon indicating copy to clipboard operation
lb-foraging copied to clipboard

What is the version of pyglet?

Open bdtelbdtel opened this issue 2 years ago • 1 comments

File "/home/lenovo/anaconda3/envs/env_rl_mujoco/lib/python3.9/site-packages/lbforaging/foraging/rendering.py", line 134, in _draw_grid batch.add( AttributeError: 'Batch' object has no attribute 'add'

batch is a instance of pyglet as follow batch = pyglet.graphics.Batch() for r in range(self.rows + 1): batch.add(

bdtelbdtel avatar Dec 18 '22 10:12 bdtelbdtel

The problem is resolved by using pyglet version 1.5.19 instead of 2.0.1

bdtelbdtel avatar Dec 18 '22 10:12 bdtelbdtel