codechecker icon indicating copy to clipboard operation
codechecker copied to clipboard

pypi package not compatible with Python 3.12

Open peckto opened this issue 5 months ago • 0 comments

Describe the bug In Python 3.12 the distutils package was removed: https://docs.python.org/3.11/library/distutils.html

When using CodeChecker from pypi on Python 3.12, it fails with:

ModuleNotFoundError: No module named 'distutils'

CodeChecker version 6.24.0

To Reproduce Steps to reproduce the behaviour:

  1. On system with Python 3.12 (e.g. Debian Testing)
  2. pip install CodeChecker== 6.24.0

Expected behaviour In case of Python 3.12, the package setuptools is required.

Desktop (please complete the following information)

  • OS: Linux with Python 3.12 (e.g. Debian Testing)

Additional context Interestingly, the exit code when calling CodeChecker --help is 0 despite the ModuleNotFoundError. Only when calling some sub-command directly (e.g. CodeChecker log --help) the exit code is 1.

peckto avatar Sep 18 '24 10:09 peckto