semitable / lb-foraging

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

No attribute 'randint #24

Closed luzgui closed 11 months ago

luzgui commented 11 months ago

Hello, I am trying to study lbforaging but I am facing this error when calling env.reset(): AttributeError: 'numpy.random._generator.Generator' object has no attribute 'randint The solution may be to substitute randint for integers

have anyone experienced this error?

Thanks

luzgui commented 11 months ago

solved it. It has to do with packages and compatibility. If you are using anaconda to make a virtual environment for lbforaging just install teh dependencies (gym=0.21, pyglet, numpy) from conda-forge and then clone the repo and work from the project directory. This solves the randint problem and also the register environment that hangs import as refered in another issue (https://github.com/semitable/lb-foraging/issues/20)