I am deploying openstack using devstack but while deploying I encountered the following error:
Error on exit /opt/stack/devstack/tools/worlddump.py:22: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils import spawn World dumping... see /opt/stack/logs/worlddump-2022-12-29-234955.txt for details
I haven't tried anything since I don't know where to start.
This warning started to appear from python 3.10. You could use and older version of python, if it works with your other packages. It says this package will be removed in the coming version 3.12. Your program will keep running with this warning, however u can remove it in following ways:
Option 1: Replace the library with setuptools1
Option 2: Replace with copytree 2
Option 3: When nothing works, do this:
Then at the top of the code
And no warnings will appear anymore. :D :D :D
or you can filter the warnings: