openai / gym

A toolkit for developing and comparing reinforcement learning algorithms.
https://www.gymlibrary.dev
Other
34.59k stars 8.59k forks source link

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

Open TheCleric opened 1 year ago

TheCleric commented 1 year ago

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:

Checklist

pseudo-rnd-thoughts commented 1 year ago

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.

cosmicbit commented 1 week ago

the issuue is still there