I'm trying to use python-stix which relies on mixbox. However, this mixbox still relies on distutils in it's parser.
However, distutils has been deprecated since python 3.10 and has been officially removed from python 3.12 [python3.10/distutils].
This thread on stackoverflow has a more detailed discussion on how to replace distutils via setuptools.
Since, mixbox/parser.py uses distutils just for checking/managing versions, I believe this should be a quick fix.