texttest / capturemock

2 stars 2 forks source link

doesn't run with latest python 3.12 because distutils is removed #9

Closed emilybache closed 6 months ago

emilybache commented 7 months ago

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'

distutils was removed in this version of python. More information: https://docs.python.org/3.11/whatsnew/3.10.html#distutils-deprecated

gjb1002 commented 6 months ago

Fixed and released CaptureMock 2.4.0 now.