call uses the deprecated distutils package (seen by running python3 -c "from distutils import sysconfig as sc) and so does not work as intended. This is on an Ubuntu 22.04 docker container with LCM ...
As per https://docs.python.org/3.12/whatsnew/3.12.html distutils is removed from Python 3.12 Of note, the distutils package has been removed from the standard library.