I've been using elpy and a virtualenv for quite a long time, using pyflakes as my syntax checker with no problem; but decided to use Pylint instead. So I installed pylint in my venv and configured it on my elpy with M-x elpy-config. This is a sample of elpy-config:
Virtualenv........: venv (/home/mike/rest-service/venv)
RPC Python........: 3.5.1 (/home/mike/rest-service/venv/bin/python)
Interactive Python: python (/home/mike/rest-service/venv/bin/python)
Emacs.............: 24.4.1
Elpy..............: 1.11.0
Jedi..............: Not found (0.9.0 available)
Rope..............: 0.9.4-1
Importmagic.......: Not found (0.1.7 available)
Autopep8..........: Not found (1.2.2 available)
Yapf..............: Not found (0.7.0 available)
Syntax checker....: pylint (/home/mike/rest-service/venv/bin/pylint)
It looks fine as far as I know but the problem is: everytime I open a .py file, an error pops up saying:
Flymake: Configuration error has ocurred while running (pylint /rout/to/my/file_flymake.py). Flymake will be switched OFF
I've been looking for a solution in google, but haven't found an answer that works for me, hope you can help me.
Thank you.
Hello and thanks for the report! Can you try and run C-c C-v to see if that gives a more intelligible error?
thank you for your response, Jorgen.
I had no idea C-C C-v runs the syntax checker, and in fact a more intelligible error was shown..., but not as descriptive as I would like it. This is the last part of the result:
Global evaluation
-----------------
Your code has been rated at 8.57/10 (previous run: 8.57/10, +0.00)
Compilation exited abnormally with code 20 at Wed Apr 13 09:22:30
made a quick search for that "code 20" error and couldn't find a thing unfortunately.
This indicates that pylint runs correctly, but apparently it is configured to exit with an error code if certain metrics are not achieved … I'm afraid that this is more of a question on how to configure pylint than Elpy. I do not use pylint, so I do not know if there is an option to run it so it won't exit with an error code.
I have had success using epylint.
Looks like epylint is the way to go.
were you able to use it @mikeiwi ?
Most helpful comment
I have had success using epylint.