Hey, trying the upgrade to `2.5.0` from `2.4.0`. E...
# general
c
Hey, trying the upgrade to
2.5.0
from
2.4.0
. Everything seems to be working great except for pylint when running pylint with
--changed-since=<branch>
I'm getting
Copy code
ModuleNotFoundError: No module named 'pkg_resources'
Runs great when running without
--changed-since
h
Is there more to the stack trace?
c
Copy code
16:20:21.32 [INFO] Completed: lint - Flake8 succeeded.
16:20:21.50 [WARN] Completed: lint - Pylint failed (exit code 1).
Traceback (most recent call last):
  File "/private/var/folders/dm/wn9lv25572xcjq2x3hq_tpsr0000gn/T/process-executionZaC1iw/.cache/pex_root/venvs/5a5c8bb9c33be3f8f0757f141cfb38f051d87930/6ed204f5fc1ef62d86cf1797bb9b24ff5e963ebd/pex", line 120, in <module>
    module = importlib.import_module(module_name)
  File "/usr/local/Cellar/python@3.8/3.8.9/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/charlieoconor/.cache/pants/named_caches/pex_root/venvs/5a5c8bb9c33be3f8f0757f141cfb38f051d87930/6ed204f5fc1ef62d86cf1797bb9b24ff5e963ebd/lib/python3.8/site-packages/pylint/__init__.py", line 15, in <module>
    from pylint.__pkginfo__ import __version__
  File "/Users/charlieoconor/.cache/pants/named_caches/pex_root/venvs/5a5c8bb9c33be3f8f0757f141cfb38f051d87930/6ed204f5fc1ef62d86cf1797bb9b24ff5e963ebd/lib/python3.8/site-packages/pylint/__pkginfo__.py", line 4, in <module>
    from pkg_resources import DistributionNotFound, get_distribution
ModuleNotFoundError: No module named 'pkg_resources'
Actually now thinking about this could be the version of pylint
2.8.3
h
You could try adding
setuptools
to
[pylint].extra_requirements
. Looks like Pylint doesn't express a dep on setuptools: https://github.com/PyCQA/pylint/blob/fa144f666752689f5daa1ad71ec97de696e99d15/setup.cfg#L43-L48