gym icon indicating copy to clipboard operation
gym copied to clipboard

[Bug Report] Use of numpy bool8 is deprecated in newer versions of numpy

Open TheCleric opened this issue 2 years ago • 1 comments

Describe the bug When using a newer version of numpy, this DeprecationWarning is shown:

DeprecationWarning: `np.bool8` is a deprecated alias for `np.bool_`.  (Deprecated NumPy 1.24)

Code example Using numpy 1.24:

import gym

env = gym.make('CartPole-v1')
env.reset()
env.step(0)

System Info Describe the characteristic of your environment:

  • gym installed via pip install
  • OS: MacOS 12.6
  • Python: 3.10.8

Checklist

  • [X] I have checked that there is no similar issue in the repo (required)

TheCleric avatar Dec 23 '22 16:12 TheCleric

Thanks for reporting the issue but we are not planning on making another release for Gym to fix this.

This is as the volunteer maintainers of Gym for the past 18 months just launched gymnasium, a fork of Gym by the maintainers where all maintenance and improvements will happen moving forward. We have already fixed the issue on Gymnasium and will be part of v0.27.1

If you'd like to read more about the story behind the backstory behind this and our plans going forward, click here.

pseudo-rnd-thoughts avatar Dec 23 '22 23:12 pseudo-rnd-thoughts

the issuue is still there

cosmicbit avatar Sep 29 '24 05:09 cosmicbit