prospector
prospector copied to clipboard
[BUG] Python 3.12.2/4 - ModuleNotFoundError: No module named 'pkg_resources'
Description: Can't run prospector using Python 3.12.2 and 3.12.4, not locally, not using GitHub actions.
Steps to reproduce the behavior:
- Install python 3.12.4
- Create a virtual environment
- Install prospector
- Run prospector
pyenv install 3.12.4
pyenv virtualenv 3.12.4 test
pyenv local test
pip install prospector
prospector .
The same happens with the clean Ubuntu 22.04 installation:
wget https://www.python.org/ftp/python/3.12.4/Python-3.12.4.tgz
tar -xzf Python-3.12.4.tgz && cd Python-3.12.4/
./configure --enable-optimizations && make -j 4 && sudo make altinstall
python3.12 -m pip install prospector
python3.12 -m prospector .
And seems the problem not only with python 3.12.4 (GitHub actions):
Expected behavior Prospector should run as usual.
Environment:
- OS: Ubuntu 22.04 LTS
- Tool - prospector
- Prospector version 1.10.3
- Python version 3.12.2 and 3.12.4
Additional context
pip freeze
output:
astroid==2.15.8
dill==0.3.8
dodgy==0.2.1
flake8==5.0.4
flake8-polyfill==1.0.2
gitdb==4.0.11
GitPython==3.1.43
isort==5.13.2
lazy-object-proxy==1.10.0
mccabe==0.7.0
packaging==24.1
pep8-naming==0.10.0
platformdirs==4.2.2
prospector==1.10.3
pycodestyle==2.9.1
pydocstyle==6.3.0
pyflakes==2.5.0
pylint==2.17.7
pylint-celery==0.3
pylint-django==2.5.3
pylint-flask==0.6
pylint-plugin-utils==0.7
PyYAML==6.0.1
requirements-detector==1.2.2
semver==3.0.2
setoptconf-tmp==0.3.1
smmap==5.0.1
snowballstemmer==2.2.0
toml==0.10.2
tomlkit==0.12.5
wrapt==1.16.0