When running capturemock with the latest version of python 3.12
import capturemock
File "C:\Users\Administrator\workspace\VendingMachineService\IntegrationTests\venv\Lib\site-packages\capturemock__init__.py", line 1, in
from .capturepython import interceptPython
File "C:\Users\Administrator\workspace\VendingMachineService\IntegrationTests\venv\Lib\site-packages\capturemock\capturepython.py", line 5, in
from distutils.sysconfig import get_python_lib
ModuleNotFoundError: No module named 'distutils'
When running capturemock with the latest version of python 3.12
File "C:\Users\Administrator\workspace\VendingMachineService\IntegrationTests\venv\Lib\site-packages\capturemock__init__.py", line 1, in
from .capturepython import interceptPython
File "C:\Users\Administrator\workspace\VendingMachineService\IntegrationTests\venv\Lib\site-packages\capturemock\capturepython.py", line 5, in
from distutils.sysconfig import get_python_lib
ModuleNotFoundError: No module named 'distutils'
distutils was removed in this version of python. More information: https://docs.python.org/3.11/whatsnew/3.10.html#distutils-deprecated