semitable / lb-foraging

Level-based Foraging (LBF): A multi-agent environment for RL
MIT License
151 stars 64 forks source link

What is the version of pyglet? #19

Open bdtelbdtel opened 1 year ago

bdtelbdtel commented 1 year ago

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 commented 1 year ago

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