The file `setup.py` imports from `distutils.extension`, which no longer exists in Python 3.12: https://github.com/fabioz/PyDev.Debugger/blob/2cf10e3fb2ace33b6ef36d66332c82b62815e856/setup.py#L26 It should be sufficient to replace this with `from setuptools import Extension`.