rlcard icon indicating copy to clipboard operation
rlcard copied to clipboard

np.int is deprecated

Open pseudo-rnd-thoughts opened this issue 3 years ago • 2 comments

Im part of the dev team on PettingZoo. We were through our CI trying to reduce the number of warnings and spotted this warning

test/pytest_runner_test.py: 99 warnings
test/unwrapped_test.py: 6 warnings
  /opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/rlcard/games/doudizhu/game.py:40: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    for _ in range(self.num_players)]

Would you be able to fix the warning line, thanks

pseudo-rnd-thoughts avatar Aug 31 '22 17:08 pseudo-rnd-thoughts

@pseudo-rnd-thoughts Thank you. Just fixed this. PyPi will be updated as well next week.

daochenzha avatar Sep 02 '22 21:09 daochenzha

@pseudo-rnd-thoughts Thank you. Just fixed this. PyPi will be updated as well next week.

Hi. It seems that the latest release (1.0.7) does not contain this fix.

GaetanLepage avatar May 07 '24 09:05 GaetanLepage