jorgenschaefer/elpy

Request for assistance: elpy + flymake not finding checker binaries

Closed this issue · 1 comments

Summary

This is probably me doing something wrong, rather than a bug. Thanks for any advice! (P.S. maybe it would be a good idea to turn on the discussions features, so that people like me don't post requests for help as issues?)

Getting warnings in my Emacs buffer about the rpc environment not finding the right binaries. From the *Messages* buffer:

pyflakes:Checker not found on PATH, unable to check
pylint:Checker not found on PATH, unable to check

But when I look at the virtual environment, these are present:

$ ls bin
Activate.ps1  activate.fish  black-macchiato*  get_gprof*     isort-identify-imports*  pip3.11*      pylint*         python@      symilar*  yapf-diff*
activate      autopep8*      blackd*           get_objgraph*  pip*                     pycodestyle*  pylint-config*  python3@     undill*
activate.csh  black*         flake8*           isort*         pip3*                    pyflakes*     pyreverse*      python3.11@  yapf*

and in that virtualenv, the path seems correct:

(rpc-venv) rpg@rpg-mbp182: ~/.emacs.d/elpy/rpc-venv $ which pyflakes
/Users/rpg/.emacs.d/elpy/rpc-venv/bin/pyflakes
(rpc-venv) rpg@rpg-mbp182: ~/.emacs.d/elpy/rpc-venv $ which pylint
/Users/rpg/.emacs.d/elpy/rpc-venv/bin/pylint

Steps to reproduce

This happens whenever I open a python file.

My configuration

OS

MacOS Sonoma 14.4.1

Result of (elpy-config)

Emacs.............: 29.2
Elpy..............: 1.35.0
Virtualenv........: llm-provenance-9abNAVmX-py3.12 (/Users/rpg/Library/Caches/pypoetry/virtualenvs/llm-provenance-9abNAVmX-py3.12/)
Interactive Python: python 3.12.2 (/Users/rpg/Library/Caches/pypoetry/virtualenvs/llm-provenance-9abNAVmX-py3.12/bin/python)
RPC virtualenv....: rpc-venv (/Users/rpg/.emacs.d/elpy/rpc-venv)
 Python...........: python 3.11.9 (/Users/rpg/.emacs.d/elpy/rpc-venv/bin/python)
 Jedi.............: 0.19.1
 Autopep8.........: 2.1.0
 Yapf.............: 0.40.2
 Black............: 24.3.0
Syntax checker....: flake8 (/Users/rpg/Library/Caches/pypoetry/virtualenvs/llm-provenance-9abNAVmX-py3.12/bin/flake8)

Elpy configuration in my init.el

python-config.el.txt

Something has happened and now the emacs buffer is finding pylint. I'm going to close this for now. If I can figure out what makes this come or go, I will reopen.