Closed luzgui closed 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)
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 substituterandint
forintegers
have anyone experienced this error?
Thanks