I just installed pylint (sudo pacman -S python3-pylint) and I seem to get an error:

$ pylint -r y scrapebook.py | more
Traceback (most recent call last):
  File "/usr/bin/pylint", line 8, in <module>
    sys.exit(run_pylint())
             ^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pylint/__init__.py", line 31, in run_pylint
    from pylint.lint import Run as PylintRun
  File "/usr/lib/python3.11/site-packages/pylint/lint/__init__.py", line 20, in <module>
    from pylint.lint.caching import load_results, save_results
  File "/usr/lib/python3.11/site-packages/pylint/lint/caching.py", line 12, in <module>
    from pylint.constants import PYLINT_HOME
  File "/usr/lib/python3.11/site-packages/pylint/constants.py", line 12, in <module>
    import platformdirs
ModuleNotFoundError: No module named 'platformdirs'

It has been years since I ran it, so maybe I am missing something basic.

Looks like it needs a new depend, you can test with sudo pip3 install platformdirs (use pip3 uninstall to remove what the previous command added). If that fixes, pylint will need a rebuild to add new packages.

Thank you. I have heard of newbies having trouble after pip installs, so I always installed python modules via the distro's package manager, so I have never tried pip before this morning.

[mparillo@marco-latitude5420 ~]$ sudo pip3 install platformdirs
Password: 
sudo: pip3: command not found
[mparillo@marco-latitude5420 ~]$ sudo pacman -S pip3
error: target not found: pip3

pip3 is part of python3-pip (I thought it was pulled in on most installs, but not the case). For future refs, pkgfile with the KaOS bashrc :pf will help you find any package that contains certain files:

sudo pkgfile -u
:pf bin/pip3
main/python3-pip 24.3.1-1       /usr/bin/pip3

That did it, thank you.

That is not a solution, but a temp workaround.....
Pylint seems to need a whole bunch more (new) python depends, which are not in the KaOS repo. Question now, does pylint justify adding all these depends, since nothing else needs it in KaOS, is it used enough to do that, or is it time to remove pylint?