mars-project / mars

Mars is a tensor-based unified framework for large-scale data computation which scales numpy, pandas, scikit-learn and Python functions.
https://mars-project.readthedocs.io
Apache License 2.0
2.68k stars 325 forks source link

[BUG] mars.tensor.int is not compatible with numpy since v1.24 #3321

Closed vcfgv closed 1 year ago

vcfgv commented 1 year ago

Describe the bug Since numpy v1.24, numpy.int, numpy.float, numpy.object, numpy.bool is no longer able to be imported, while cases are that mt.int is used. Deprecate warnings removed by PR #2788 finally come into reality.

To Reproduce To help us reproducing this bug, please provide information below:

  1. Your Python version: v3.8.13
  2. The version of Mars you use: master
  3. Versions of crucial packages, numpy v1.24.1
  4. Full stack of the error. AttributeError: module 'mars.tensor' has no attribute 'int'
  5. Minimized code to reproduce the error.

    import mars.tensor as mt mt.int

Expected behavior AttributeError: module 'mars.tensor' has no attribute 'int'

Additional context