Open FrancescoCasalegno opened 2 years ago
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly. If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.
Description
setuptools
has deprecated the usage ofdistutils
Version
classes since version60.3.0
. See https://github.com/pypa/setuptools/commit/1701579e0827317d8888c2254a17b5786b6b5246 for details.As a consequence, a
warning
is raised any time we try, e.g., to dofrom docker import from_env
. Notice that thiswarning
can be fatal if the user has set a warning filter toerror
mode, which is not too uncommon when running unit tests in CI.Error Message
To Reproduce
What have you tried to solve it?
To fix the problem we should replace occurrences of
distutils.Version
(and its subclasses) withpackaging.Version
.There are only few cases where intervention is needed, see full list here.