gym
gym copied to clipboard
[Bug Report] Use of numpy bool8 is deprecated in newer versions of numpy
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)
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.
the issuue is still there